Debian Codegraph @

debian/rust-vendor/num-prime/.github/workflows/codspeed.yml

raw
1 name: CodSpeed
2
3 on:
4 push:
5 branches:
6 - "main"
7 pull_request:
8 # `workflow_dispatch` allows CodSpeed to trigger backtest
9 # performance analysis in order to generate initial data.
10 workflow_dispatch:
11
12 permissions:
13 contents: read
14 id-token: write
15
16 jobs:
17 codspeed:
18 name: Run ${{ matrix.mode }} benchmarks
19 runs-on: ubuntu-latest
20 strategy:
21 matrix:
22 mode: [simulation] # , memory]
23 steps:
24 - uses: actions/checkout@v6
25
26 - name: Setup rust toolchain, cache and cargo-codspeed binary
27 uses: moonrepo/setup-rust@v1
28 with:
29 channel: stable
30 cache-target: release
31 bins: cargo-codspeed
32
33 - name: Build the benchmark target(s)
34 run: cargo codspeed build -m ${{ matrix.mode }} -p num-prime-bench
35
36 - name: Run the benchmarks
37 uses: CodSpeedHQ/action@v4
38 with:
39 mode: ${{ matrix.mode }}
40 run: cargo codspeed run -p num-prime-bench