fix: close VectorSet post-merge safety gaps #397
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: Benchmark | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| benchmark: | |
| name: Compile Benchmarks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Setup toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: Verify runtime baseline source inputs are clean | |
| shell: bash | |
| run: | | |
| set -Eeuo pipefail | |
| dirty="$(git 'status' '--porcelain' '--untracked-files=all' '--' 'Cargo.toml' 'Cargo.lock' 'rust-toolchain.toml' '.cargo' 'src' 'tools/runtime-baseline/Cargo.toml' 'tools/runtime-baseline/build.rs' 'tools/runtime-baseline/build_support.rs' 'tools/runtime-baseline/src' 'tools/runtime-baseline/tests' ':(exclude,glob)**/.git' ':(exclude,glob)**/.git/**' ':(exclude,glob)**/target' ':(exclude,glob)**/target/**' ':(exclude,glob)**/results' ':(exclude,glob)**/results/**')" | |
| if [[ -n "$dirty" ]]; then | |
| printf '%s\n' "$dirty" >&2 | |
| exit 1 | |
| fi | |
| - name: Install protoc | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y protobuf-compiler | |
| - name: Compile benchmark targets | |
| run: | | |
| cargo build --release -p runtime-baseline --bin kiwi-runtime-baseline | |
| cargo bench --no-run |