Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 9fdea85

Browse files
gnunicorns3kritbkchr
authored
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 <[email protected]> * Update .gitlab-ci.yml Co-authored-by: s3krit <[email protected]> Co-authored-by: s3krit <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
1 parent b9cf1f6 commit 9fdea85

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.gitlab-ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,27 @@ cargo-check-subkey:
193193
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --release
194194
- sccache -s
195195

196+
test-deterministic-wasm:
197+
stage: test
198+
<<: *docker-env
199+
variables:
200+
<<: *default-vars
201+
except:
202+
variables:
203+
- $DEPLOY_TAG
204+
script:
205+
# build runtime
206+
- WASM_BUILD_NO_COLOR=1 cargo build --verbose --release -p node-runtime
207+
# make checksum
208+
- sha256sum target/release/wbuild/target/wasm32-unknown-unknown/release/node_runtime.wasm > checksum.sha256
209+
# clean up – FIXME: can we reuse some of the artifacts?
210+
- cargo clean
211+
# build again
212+
- WASM_BUILD_NO_COLOR=1 cargo build --verbose --release -p node-runtime
213+
# confirm checksum
214+
- sha256sum -c checksum.sha256
215+
- sccache -s
216+
196217
test-linux-stable: &test-linux
197218
stage: test
198219
<<: *docker-env

0 commit comments

Comments
 (0)