Skip to content

Commit

Permalink
ci: Move benchmark job to separate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
HDauven committed Aug 22, 2024
1 parent cd5610d commit 2035aa5
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 15 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Benchmark CI

on:
push:
branches:
- master

jobs:
# Job to run change detection
changes:
runs-on: core
permissions:
pull-requests: read
outputs:
run-ci: ${{ steps.filter.outputs.run-ci }}
steps:
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
run-ci:
- 'rusk/**/*
- 'node/**/*
predicate-quantifier: "any"

benchmark:
needs: changes
if: needs.changes.outputs.run-ci == 'true'
name: Run Benchmarks
runs-on: core
steps:
- uses: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
- run: make bench
- name: Upload Benchmark Results
uses: actions/upload-artifact@v4
with:
name: rusk-benchmark-results
path: ./target/criterion
retention-days: 14
15 changes: 0 additions & 15 deletions .github/workflows/rusk_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,3 @@ jobs:
- uses: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
- run: cargo fmt --all -- --check
benchmark:
needs: changes
if: needs.changes.outputs.run-ci == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/master'
name: Run Benchmarks
runs-on: core
steps:
- uses: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
- run: make bench
- name: Upload Benchmark Results
uses: actions/upload-artifact@v4
with:
name: rusk-benchmark-results
path: ./target/criterion
retention-days: 14

0 comments on commit 2035aa5

Please sign in to comment.