Skip to content
Snippets Groups Projects

Resolve "srtool no more builds the WASM"

Merged Cédric Moreau requested to merge 189-srtool-no-more-builds-the-wasm into master
2 files
+ 168
85
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 30
1
@@ -114,6 +114,35 @@ gdev_build:
@@ -114,6 +114,35 @@ gdev_build:
- apt-get install -y clang cmake protobuf-compiler
- apt-get install -y clang cmake protobuf-compiler
- cargo build --no-default-features --features gtest
- cargo build --no-default-features --features gtest
 
gdev_srtool_build:
 
stage: build
 
rules:
 
- if: $CI_COMMIT_REF_NAME =~ /^wip*$/
 
when: manual
 
- if: $CI_COMMIT_TAG
 
when: never
 
- if: $CI_COMMIT_BRANCH =~ /^(release\/runtime-)[0-9].*/
 
when: never
 
- if: '$CI_MERGE_REQUEST_ID || $CI_COMMIT_BRANCH == "master"'
 
- when: manual
 
image: paritytech/srtool:1.74.0-0.13.0
 
variables:
 
PACKAGE: gdev-runtime
 
RUNTIME_DIR: runtime/gdev
 
SRTOOL_OUTPUT: $CI_PROJECT_DIR/release/srtool_output_gdev.json
 
script:
 
- echo "Building runtime for gdev"
 
- export RUSTC_VERSION=1.74.0 # TEST
 
- export RUSTUP_TOOLCHAIN=1.74.0-x86_64-unknown-linux-gnu # TEST
 
- mkdir -p $CI_PROJECT_DIR/release
 
# Copy sources to the expected directory of srtool
 
- cp -R * /build/
 
# Build the runtime
 
- /srtool/build --app --json -cM | tee -a $SRTOOL_OUTPUT
 
- mv /build/runtime/gdev/target/srtool/release/wbuild/gdev-runtime/gdev_runtime.compact.compressed.wasm $CI_PROJECT_DIR/release/
 
tags:
 
- kepler
 
tests:
tests:
stage: tests
stage: tests
image: rust:1-bullseye
image: rust:1-bullseye
@@ -196,7 +225,7 @@ readme_docker_release_tag:
@@ -196,7 +225,7 @@ readme_docker_release_tag:
stage: build
stage: build
rules:
rules:
- if: $CI_PIPELINE_SOURCE != "merge_request_event" && $CI_COMMIT_BRANCH =~ /^(release\/runtime-)[0-9].*/
- if: $CI_PIPELINE_SOURCE != "merge_request_event" && $CI_COMMIT_BRANCH =~ /^(release\/runtime-)[0-9].*/
image: paritytech/srtool:1.73.0-0.12.0
image: paritytech/srtool:1.74.0-0.13.0
variables:
variables:
PACKAGE: $RUNTIME-runtime
PACKAGE: $RUNTIME-runtime
RUNTIME_DIR: runtime/$RUNTIME
RUNTIME_DIR: runtime/$RUNTIME
Loading