Auto merge of #3514 - RalfJung:hyperfine, r=RalfJung
CI: run benches with hyperfine rather than bash The hyperfine installation is cached so this should not cost a lot of CI time. This is step 1/2 to getting rid of the BASH variable hack.
This commit is contained in:
commit
d93f9ae3ee
8
src/tools/miri/.github/workflows/ci.yml
vendored
8
src/tools/miri/.github/workflows/ci.yml
vendored
@ -57,12 +57,12 @@ jobs:
|
|||||||
~/.cargo/bin
|
~/.cargo/bin
|
||||||
~/.cargo/.crates.toml
|
~/.cargo/.crates.toml
|
||||||
~/.cargo/.crates2.json
|
~/.cargo/.crates2.json
|
||||||
key: cargo-${{ runner.os }}-reset20240331-${{ hashFiles('**/Cargo.lock') }}
|
key: cargo-${{ runner.os }}-reset20240425-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: cargo-${{ runner.os }}-reset20240331
|
restore-keys: cargo-${{ runner.os }}-reset20240425
|
||||||
|
|
||||||
- name: Install rustup-toolchain-install-master
|
- name: Install tools
|
||||||
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
|
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
|
||||||
run: cargo install -f rustup-toolchain-install-master
|
run: cargo install -f rustup-toolchain-install-master hyperfine
|
||||||
|
|
||||||
- name: Install miri toolchain
|
- name: Install miri toolchain
|
||||||
run: |
|
run: |
|
||||||
|
@ -78,8 +78,8 @@ function run_tests {
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
if [ -n "${TEST_BENCH-}" ]; then
|
if [ -n "${TEST_BENCH-}" ]; then
|
||||||
# Check that the benchmarks build and run, but without actually benchmarking.
|
# Check that the benchmarks build and run, but only once.
|
||||||
time HYPERFINE="'$BASH' -c" ./miri bench
|
time HYPERFINE="hyperfine -w0 -r1" ./miri bench
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## test-cargo-miri
|
## test-cargo-miri
|
||||||
|
Loading…
x
Reference in New Issue
Block a user