Skip to content
Snippets Groups Projects
Commit 1628f537 authored by Benjamin Kampmann's avatar Benjamin Kampmann Committed by GitHub
Browse files

Regression test to ensure we don't break deterministic builds in wasm (#6597)


* Regression test to ensure we don't break deterministic builds in wasm again

* Apply suggestions from code review

Co-authored-by: default avatars3krit <pugh@s3kr.it>

* Update .gitlab-ci.yml

Co-authored-by: default avatars3krit <pugh@s3kr.it>

Co-authored-by: default avatars3krit <pugh@s3kr.it>
Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
parent 41878273
No related merge requests found
......@@ -193,6 +193,27 @@ cargo-check-subkey:
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --release
- sccache -s
test-deterministic-wasm:
stage: test
<<: *docker-env
variables:
<<: *default-vars
except:
variables:
- $DEPLOY_TAG
script:
# build runtime
- WASM_BUILD_NO_COLOR=1 cargo build --verbose --release -p node-runtime
# make checksum
- sha256sum target/release/wbuild/target/wasm32-unknown-unknown/release/node_runtime.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 node-runtime
# confirm checksum
- sha256sum -c checksum.sha256
- sccache -s
test-linux-stable: &test-linux
stage: test
<<: *docker-env
......
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