forked from microsoft/qsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 988 Bytes
/
bench-reports.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
name: Benchmark Reports
on:
schedule:
- cron: "0 0 * * MON"
env:
CARGO_TERM_COLOR: always
NODE_VERSION: "18.17.1"
PYTHON_VERSION: "3.11"
RUST_TOOLCHAIN_VERSION: "1.80"
jobs:
runBenchmark:
runs-on: ubuntu-latest
name: run benchmark
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: setup rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
- name: setup cargo criterion
run: cargo install cargo-criterion
- name: run benching script
run: ./build.py --ci-bench --no-check-prereqs
- name: preserve bench artifacts
uses: actions/upload-artifact@v4
with:
name: benchmarks
path: |
*.json