-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Continuous benchmarking with codspeed.io (#1925)
Let's see if this works with the llvm lib...
- Loading branch information
Showing
4 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,10 +88,12 @@ jobs: | |
RUSTDOCFLAGS: "-Dwarnings" | ||
|
||
benches: | ||
name: Build benchmarks 🏋️ | ||
name: Continuous benchmarking 🏋️ | ||
needs: changes | ||
if: ${{ needs.changes.outputs.rust == 'true' && github.event_name != 'merge_group' }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
checks: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: mozilla-actions/[email protected] | ||
|
@@ -101,10 +103,18 @@ jobs: | |
uses: KyleMayes/install-llvm-action@v2 | ||
with: | ||
version: ${{ env.LLVM_VERSION }} | ||
- name: Build benchmarks with no features | ||
run: cargo bench --verbose --no-run --no-default-features | ||
- name: Build benchmarks with all features | ||
run: cargo bench --verbose --no-run --all-features | ||
- uses: cargo-bins/cargo-binstall@main | ||
- name: Install cargo-codspeed | ||
run: cargo binstall cargo-codspeed --force | ||
- name: Override criterion with the CodSpeed harness | ||
run: cargo add --dev codspeed-criterion-compat --rename criterion --package hugr | ||
- name: Build benchmarks | ||
run: cargo codspeed build --profile bench --features extension_inference,declarative,model_unstable,llvm,llvm-test | ||
- name: Run benchmarks | ||
uses: CodSpeedHQ/action@v3 | ||
with: | ||
token: ${{ secrets.CODSPEED_TOKEN }} | ||
run: "cargo codspeed run" | ||
|
||
# Run tests on Rust stable | ||
tests-stable-no-features: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters