-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (49 loc) · 1.22 KB
/
bench.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: bench
on:
push:
branches:
- main
pull_request:
concurrency:
group: bench-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
interpret:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-15
options:
-
- -d
exclude:
- os: ${{ github.ref == 'refs/heads/main' && 'none' || 'macos-15' }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: tools/bench.sh ${{ matrix.options }}
codspeed:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: cargo install --features vendored-openssl cargo-codspeed
- run: cargo codspeed build
- uses: codspeedhq/action@v3
with:
run: cargo codspeed run
token: ${{ secrets.CODSPEED_TOKEN }}
bench:
needs:
- interpret
- codspeed
if: always()
runs-on: ubuntu-latest
steps:
- run: for result in ${{ join(needs.*.result, ' ') }}; do [ $result = success ]; done