Evaluating benchmark for feature/remove-refcell-from-host-context #646
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Evaluate benchmark | |
| on: | |
| pull_request: | |
| branches-ignore: | |
| - 'hotfix/**' | |
| paths-ignore: | |
| - '**.md' | |
| run-name: Evaluating benchmark for ${{ github.head_ref }} | |
| jobs: | |
| evaluate-benchmark: | |
| name: Evaluate benchmark | |
| runs-on: buildjet-8vcpu-ubuntu-2204 | |
| continue-on-error: true | |
| steps: | |
| - name: Setup just | |
| uses: extractions/setup-just@v1 | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: nightly-2025-01-01 | |
| target: wasm32-unknown-unknown | |
| - name: Cache target | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target/debug/.fingerprint | |
| target/debug/build | |
| key: odra-cache | |
| - name: Prepare test environment | |
| run: just prepare-test-env | |
| - name: Set base benchmark filename | |
| id: set-benchmark-filename | |
| run: echo "BASE_BENCHMARK=${GITHUB_BASE_REF}" | sed 's:/:-:g' | sed 's:\.:-:g' >> $GITHUB_OUTPUT | |
| - name: Download base benchmark report for ${{ github.base_ref }} | |
| uses: dawidd6/action-download-artifact@v4 | |
| with: | |
| name: ${{ steps.set-benchmark-filename.outputs.BASE_BENCHMARK }} | |
| branch: ${{ github.base_ref }} | |
| workflow: benchmark.yml | |
| path: benchmark/base/ | |
| - name: Evaluate benchmark | |
| id: evaluate-benchmark | |
| run: | | |
| set +e | |
| just evaluate-benchmark | |
| echo "EXIT_CODE=$?" >> $GITHUB_OUTPUT | |
| continue-on-error: true | |
| - name: Create comment | |
| uses: peter-evans/create-or-update-comment@v4 | |
| if: steps.evaluate-benchmark.outputs.EXIT_CODE != '0' | |
| with: | |
| issue-number: ${{ github.event.number }} | |
| body-path: benchmark/benchmark_report.txt | |
| - name: Upload full report artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: benchmark-report | |
| path: benchmark/benchmark_full_report.txt |