Skip to content

Commit

Permalink
fix: try-runtime support in CI (#623)
Browse files Browse the repository at this point in the history
Fixes KILTprotocol/ticket#3300.

Currently srtool does not really support features
(chevdor/srtool-cli#32), so we need a
workaround until features are supported in srtool. Since this is what we
do anyway now, I decided to go with using the same build infrastructure
we use for tests.
  • Loading branch information
ntn-x2 committed Apr 12, 2024
1 parent 36ba6d8 commit 94aec57
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,22 +123,17 @@ build-wasm-try-runtime:
- RUNTIME: "peregrine"
- RUNTIME: "spiritnet"
image:
name: paritytech/srtool:1.70.0
name: paritytech/ci-unified:bullseye-1.70.0
entrypoint: [""]
stage: build
only:
- develop
- master
- /^[0-9]+(?:\.[0-9]+){2}(?:-(rc)*([0-9])+)?$/
script:
- export PACKAGE=${RUNTIME}-runtime
- export RUNTIME_DIR=runtimes/${RUNTIME}
- export PARACHAIN_PALLET_ID=0x50
- export AUTHORIZE_UPGRADE_PREFIX=0x02
- cp -r * /build
- /srtool/build build --default-features try-runtime
- cargo build -p ${RUNTIME}-runtime --features try-runtime
- mkdir ./out
- mv /out/${RUNTIME}_runtime.compact.compressed.wasm ./dangerous_${RUNTIME}.try-runtime.wasm
- mv target/release/wbuild/${RUNTIME}-runtime/${RUNTIME}_runtime.compact.compressed.wasm ./dangerous_${RUNTIME}.try-runtime.wasm
artifacts:
name: ${RUNTIME}_try-runtime
paths:
Expand Down

0 comments on commit 94aec57

Please sign in to comment.