Skip to content

Commit

Permalink
Update CI workflow to manage NTP server and store results.
Browse files Browse the repository at this point in the history
Added steps to start and stop an NTP server during benchmarking, enhancing test isolation. Benchmark results are now stored with a dedicated action, improving result accessibility. This update simplifies the workflow and ensures better resource handling.
  • Loading branch information
vpetrigo committed Dec 27, 2024
1 parent ab1e53d commit 11ae5a2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,14 @@ jobs:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Start test NTP server
run: uvx --from git+https://github.com/vpetrigo/ntpserver@master ntpserver > /dev/null &
- name: Run benchmarking
run: |
uvx --from git+https://github.com/vpetrigo/ntpserver@master ntpserver > /dev/null &
cargo bench --features sync
run: cargo bench --features sync | tee output.txt
- name: Kill NTP server
run: pgrep -f ntpserver | xargs kill
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'cargo'
output-file-path: output.txt

0 comments on commit 11ae5a2

Please sign in to comment.