Skip to content

Commit

Permalink
ci: generate metadata with subwasm (#542)
Browse files Browse the repository at this point in the history
## fixes KILTprotocol/ticket#2241

- Upgrade srtool
- Extract metada and publish as artifact
  • Loading branch information
ggera authored Jul 25, 2023
1 parent 401e1a7 commit c4c1ef2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ build:

build-wasm-peregrine:
image:
name: paritytech/srtool:1.66.1-0.9.25
name: paritytech/srtool:1.70.0
entrypoint: [""]
stage: build
only:
Expand All @@ -71,16 +71,18 @@ build-wasm-peregrine:
- export AUTHORIZE_UPGRADE_PREFIX=0x02
- cp -r * /build
- /srtool/build build
- subwasm meta --format=json+scale /out/peregrine_runtime.compact.wasm > /out/peregrine-metadata.json
- mkdir ./out
- mv /out/* ./out/
artifacts:
paths:
- out/*.wasm
- out/*.json
expire_in: 12 week

build-wasm-spiritnet:
image:
name: paritytech/srtool:1.66.1-0.9.25
name: paritytech/srtool:1.70.0
entrypoint: [""]
stage: build
only:
Expand All @@ -94,9 +96,11 @@ build-wasm-spiritnet:
- export AUTHORIZE_UPGRADE_PREFIX=0x02
- cp -r * /build
- /srtool/build build
- subwasm meta --format=json+scale /out/out/spiritnet_runtime.compact.wasm > /out/spiritnet-metadata.json
- mkdir ./out
- mv /out/* ./out/
artifacts:
paths:
- out/*.wasm
- out/*.json
expire_in: 12 week

0 comments on commit c4c1ef2

Please sign in to comment.