Ensure builds are deterministic in CI.

This introduces a script that has a high probability of failing if the
Rust source code generated by the meta crate is not consistent accross
build script runs.

It also adds a new CI job to run it on each push, on a single platform.
This commit is contained in:
Benjamin Bouvier
2019-12-04 10:36:20 +01:00
parent 4cc0241f37
commit 81782f8efa
2 changed files with 53 additions and 0 deletions

View File

@@ -112,6 +112,18 @@ jobs:
if: false && matrix.rust == 'nightly' # Temporarily disable fuzz tests until https://github.com/bytecodealliance/cranelift/issues/1216 is resolved
continue-on-error: true
meta_determinist_check:
name: Meta deterministic check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Install Rust
run: rustup update stable && rustup default stable
- run: cargo build
- run: ci/ensure_deterministic_build.sh
fuzz:
name: Fuzz Regression
runs-on: ubuntu-latest