mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 03:31:05 +00:00
CI Regression Test for determinism of our wasm runtimes (#1372)
* deterministic build check runtime * fix yaml * Apply suggestions from code review Co-authored-by: s3krit <pugh@s3kr.it> * Update cargo.lock Co-authored-by: s3krit <pugh@s3kr.it>
This commit is contained in:
committed by
GitHub
parent
dddde219a2
commit
1b8211dd4f
@@ -105,6 +105,23 @@ publish-draft-release:
|
|||||||
interruptible: true
|
interruptible: true
|
||||||
allow_failure: 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
|
test-linux-stable: &test
|
||||||
stage: test
|
stage: test
|
||||||
<<: *test-refs
|
<<: *test-refs
|
||||||
|
|||||||
Generated
+141
-139
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user