Unverified Commit df6c17dd authored by Benjamin Kampmann's avatar Benjamin Kampmann Committed by GitHub
Browse files

CI Regression Test for determinism of our wasm runtimes (#1372)



* deterministic build check runtime

* fix yaml

* Apply suggestions from code review
Co-authored-by: Martin Pugh's avatars3krit <pugh@s3kr.it>

* Update cargo.lock
Co-authored-by: Martin Pugh's avatars3krit <pugh@s3kr.it>
parent 5d7142f1
Pipeline #100958 failed with stages
in 11 minutes and 53 seconds
......@@ -105,6 +105,23 @@ publish-draft-release:
interruptible: true
allow_failure: true
test-deterministic-wasm:
stage: test
<<: *docker-env
except:
script:
# build runtime
- WASM_BUILD_NO_COLOR=1 cargo build --verbose --release -p kusama-runtime -p polkadot-runtime -p westend-runtime
# make checksum
- sha256sum target/release/wbuild/target/wasm32-unknown-unknown/release/*.wasm > checksum.sha256
# clean up – FIXME: can we reuse some of the artifacts?
- cargo clean
# build again
- WASM_BUILD_NO_COLOR=1 cargo build --verbose --release -p kusama-runtime -p polkadot-runtime -p westend-runtime
# confirm checksum
- sha256sum -c checksum.sha256
test-linux-stable: &test
stage: test
<<: *test-refs
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment