-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (39 loc) · 1.15 KB
/
run-day.yml
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
name: Run benchmarks for a day
on:
workflow_dispatch:
permissions:
contents: read
actions: read
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Parse branch name
id: parse_branch
run: |
echo "day=$(echo $GITHUB_REF | awk -F/ '{print $NF}')" >> "$GITHUB_OUTPUT"
- name: Get input
working-directory: ./rust-runner
run: |
wget "${{ secrets.DATA_URL }}" -O data.tgz
tar -xzf data.tgz
- name: Setup rust toolchain, cache and cargo-codspeed binary
uses: moonrepo/setup-rust@v1
with:
cache-target: release
bins: cargo-codspeed
profile: minimal
- name: Build the benches
working-directory: ./rust-runner
env:
DAY_NUMBER: ${{ steps.parse_branch.outputs.day }}
run: cargo codspeed build
- name: Run the benchmarks
uses: CodSpeedHQ/[email protected]
with:
working-directory: ./rust-runner
token: ${{ secrets.CODSPEED_TOKEN }}
run: |
cargo codspeed run bench_part1
cargo codspeed run bench_part2