File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 77 - " runtime/*"
88 branches :
99 - " github-ci-test"
10- - " build-runtime*"
10+ - " build-runtime"
11+ - " build-runtime/*"
1112 - " testnet"
1213
1314concurrency :
@@ -35,20 +36,27 @@ jobs:
3536 version : 3.20.1
3637 repo-token : ${{ secrets.GITHUB_TOKEN }}
3738
39+ - name : Prepare
40+ run : |
41+ echo "SANITIZED_REF=$(echo "$GITHUB_REF_NAME" | sed -e 's/[^a-zA-Z0-9._-]/-/g')" >> $GITHUB_ENV
42+
3843 - name : Build runtime
3944 run : |
4045 cargo build --release --timings --package torus-runtime
4146
42- export SHA256SUM=$(sha256sum target/release/wbuild/torus-runtime/torus_runtime.compact.compressed.wasm | cut -d ' ' -f1)
47+ mkdir ./out/
48+
49+ mv ./target/release/wbuild/torus-runtime/torus_runtime.compact.compressed.wasm ./out/
50+ sha256sum ./out/torus_runtime.compact.compressed.wasm > ./out/torus_runtime.compact.compressed.wasm.sha256
51+
52+ export SHA256SUM=$(< ./out/torus_runtime.compact.compressed.wasm.sha256 cut -d ' ' -f1)
4353 echo Hash of compact and compressed WASM: $SHA256SUM
4454
45- mkdir out
46- mv target/release/wbuild/torus-runtime/torus_runtime.compact.compressed.wasm out/
47- touch out/$SHA256SUM
55+ touch ./out/$SHA256SUM
4856
4957 - uses : actions/upload-artifact@v4
5058 with :
51- name : torus_runtime.compact.compressed
59+ name : torus-runtime.{{ env.SANITIZED_REF }}
5260 path : out/
5361 if-no-files-found : error
5462 overwrite : true
You can’t perform that action at this time.
0 commit comments