mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 16:31:07 +00:00
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: s3krit <pugh@s3kr.it> * Update .gitlab-ci.yml Co-authored-by: s3krit <pugh@s3kr.it> Co-authored-by: s3krit <pugh@s3kr.it> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4187827343
commit
1628f537eb
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user