-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update subwasm and manual GH flow (#89)
* Bump subwasm version * Bumps subwasm version add profile and build ops * replace hardcoded profile in the path * fix tests
- Loading branch information
1 parent
ea7371b
commit 0427938
Showing
11 changed files
with
37 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: Manual Build - Acala | ||
|
||
env: | ||
SUBWASM_VERSION: 0.20.0 | ||
SUBWASM_VERSION: 0.21.0 | ||
|
||
on: | ||
workflow_dispatch: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: Manual Build - Moonbeam | ||
|
||
env: | ||
SUBWASM_VERSION: 0.20.0 | ||
SUBWASM_VERSION: 0.21.0 | ||
|
||
on: | ||
workflow_dispatch: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: Manual Build - Polkadot SDK | ||
|
||
env: | ||
SUBWASM_VERSION: 0.20.0 | ||
SUBWASM_VERSION: 0.21.0 | ||
TOML_CLI_VERSION: 0.2.4 | ||
|
||
on: | ||
|
@@ -23,6 +23,13 @@ on: | |
cache: | ||
description: By default, caching will be used but you can turn it off here if you provide 'false' | ||
default: true | ||
build_opts: | ||
description: The build options to be used to build runtime (can be left empty) | ||
required: false | ||
profile: | ||
description: The profile to be used for the runtime build | ||
default: release | ||
required: false | ||
schedule: | ||
- cron: "00 03 * * 1" # 3AM weekly on mondays | ||
|
||
|
@@ -126,26 +133,29 @@ jobs: | |
with: | ||
key: ${{ matrix.chain }}-${{ needs.find-runtimes.outputs.commit_hash }} | ||
path: | | ||
sdk/${{ matrix.runtime_dir }}/target/srtool/release/wbuild/${{ matrix.chain }}-runtime | ||
sdk/${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile }}/wbuild/${{ matrix.chain }}-runtime | ||
- name: Srtool build | ||
id: srtool_build | ||
if: ${{ steps.cache_runtime.outputs.cache-hit != 'true' }} | ||
uses: chevdor/[email protected] | ||
env: | ||
BUILD_OPTS: ${{ inputs.build_opts }} | ||
with: | ||
workdir: sdk | ||
chain: ${{ matrix.chain }} | ||
runtime_dir: ${{ matrix.runtime_dir }} | ||
image: ${{ github.event.inputs.image }} | ||
tag: ${{ github.event.inputs.srtool_tag }} | ||
profile: ${{ github.event.inputs.profile }} | ||
|
||
# This is done to allow caching | ||
- name: Store build artifacts to disk | ||
id: cache_digest | ||
if: ${{ steps.cache_runtime.outputs.cache-hit != 'true' }} | ||
working-directory: sdk | ||
run: | | ||
cached_output=${{ matrix.runtime_dir }}/target/srtool/release/wbuild/${{ matrix.chain }}-runtime/ | ||
cached_output=${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile }}/wbuild/${{ matrix.chain }}-runtime/ | ||
digest_file=${cached_output}/${{ matrix.chain }}-srtool-digest.json | ||
echo '${{ steps.srtool_build.outputs.json }}' | jq > ${digest_file} | ||
cat ${digest_file} | ||
|
@@ -157,9 +167,9 @@ jobs: | |
runtime_package=${{ matrix.chain }}-runtime | ||
runtime_filename=${runtime_package//-/_} | ||
wasm="${{ matrix.runtime_dir }}/target/srtool/release/wbuild/${runtime_package}/${runtime_filename}.compact.wasm" | ||
wasm="${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile }}/wbuild/${runtime_package}/${runtime_filename}.compact.wasm" | ||
wasm_compressed="${{ matrix.runtime_dir }}/target/srtool/release/wbuild/${runtime_package}/${runtime_filename}.compact.compressed.wasm" | ||
wasm_compressed="${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile }}/wbuild/${runtime_package}/${runtime_filename}.compact.compressed.wasm" | ||
# we need wasm and wasm_compressed | ||
echo "wasm=$wasm" >> "$GITHUB_OUTPUT" | ||
|
@@ -168,7 +178,7 @@ jobs: | |
- name: Summary | ||
working-directory: sdk | ||
run: | | ||
cached_output=${{ matrix.runtime_dir }}/target/srtool/release/wbuild/${{ matrix.chain }}-runtime/ | ||
cached_output=${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile }}/wbuild/${{ matrix.chain }}-runtime/ | ||
digest_file=${cached_output}/${{ matrix.chain }}-srtool-digest.json | ||
ls -al ${digest_file} | ||
cat ${digest_file} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: Manual Build - Shiden | ||
|
||
env: | ||
SUBWASM_VERSION: 0.20.0 | ||
SUBWASM_VERSION: 0.21.0 | ||
|
||
on: | ||
workflow_dispatch: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: Manual Build | ||
|
||
env: | ||
SUBWASM_VERSION: 0.20.0 | ||
SUBWASM_VERSION: 0.21.0 | ||
|
||
on: | ||
workflow_dispatch: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.16.0 | ||
0.17.0 |