microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
.github/workflows/bench-reports.yml
41lines · modecode
| 1 | name: Benchmark Reports |
| 2 | |
| 3 | on: |
| 4 | schedule: |
| 5 | - cron: "0 0 * * MON" |
| 6 | |
| 7 | env: |
| 8 | CARGO_TERM_COLOR: always |
| 9 | NODE_VERSION: "20.18.2" |
| 10 | PYTHON_VERSION: "3.11" |
| 11 | RUST_TOOLCHAIN_VERSION: "1.86" |
| 12 | |
| 13 | jobs: |
| 14 | runBenchmark: |
| 15 | runs-on: ubuntu-latest |
| 16 | name: run benchmark |
| 17 | permissions: |
| 18 | contents: read |
| 19 | pull-requests: write |
| 20 | steps: |
| 21 | - uses: actions/checkout@v4 |
| 22 | with: |
| 23 | fetch-depth: 0 |
| 24 | ref: main |
| 25 | - uses: actions/setup-python@v4 |
| 26 | with: |
| 27 | python-version: ${{ env.PYTHON_VERSION }} |
| 28 | - name: setup rust |
| 29 | uses: actions-rs/toolchain@v1 |
| 30 | with: |
| 31 | toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} |
| 32 | - name: setup cargo criterion |
| 33 | run: cargo install cargo-criterion |
| 34 | - name: run benching script |
| 35 | run: ./build.py --ci-bench --no-check-prereqs |
| 36 | - name: preserve bench artifacts |
| 37 | uses: actions/upload-artifact@v4 |
| 38 | with: |
| 39 | name: benchmarks |
| 40 | path: | |
| 41 | *.json |
| 42 | |