Skip to content

Commit bbe3a07

Browse files
authored
Update srtool (AcalaNetwork#1262)
* update srtool
1 parent dd474b5 commit bbe3a07

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/srtool.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
name: Srtool build
22

3+
env:
4+
SUBWASM_VERSION: 0.13.2
5+
SRTOOL_TAG: 1.53.0-0.9.16
6+
37
on:
48
workflow_dispatch:
59
inputs:
610
srtool_tag:
711
description: The SRTOOL tag to use
8-
default: 1.53.0-0.9.15
12+
# keep the same as `env.SRTOOL_TAG`
13+
default: 1.53.0-0.9.16
914
required: false
1015
ref:
1116
description: The ref to be used for the repo
@@ -17,9 +22,6 @@ on:
1722
tags:
1823
- "*"
1924

20-
env:
21-
srtool_tag: 1.53.0-0.9.15
22-
2325
jobs:
2426
build:
2527
name: Build ${{ matrix.chain }} ${{ github.event.inputs.ref || github.ref }}
@@ -37,10 +39,10 @@ jobs:
3739

3840
- name: Srtool build
3941
id: srtool_build
40-
uses: chevdor/srtool-actions@v0.2.0
42+
uses: chevdor/srtool-actions@v0.3.0
4143
with:
4244
chain: ${{ matrix.chain }}
43-
tag: ${{ github.event.inputs.srtool_tag || env.srtool_tag }}
45+
tag: ${{ github.event.inputs.srtool_tag || env.SRTOOL_TAG }}
4446

4547
- name: Summary
4648
run: |
@@ -57,10 +59,10 @@ jobs:
5759
${{ steps.srtool_build.outputs.wasm_compressed }}
5860
${{ matrix.chain }}-srtool-digest.json
5961
# We now get extra information thanks to subwasm,
60-
- name: Install subwasm
62+
- name: Install subwasm ${{ env.SUBWASM_VERSION }}
6163
run: |
62-
wget https://github.com/chevdor/subwasm/releases/download/v0.12.0/subwasm_linux_amd64_v0.12.0.deb
63-
sudo dpkg -i subwasm_linux_amd64_v0.12.0.deb
64+
wget https://github.com/chevdor/subwasm/releases/download/v${{ env.SUBWASM_VERSION }}/subwasm_linux_amd64_v${{ env.SUBWASM_VERSION }}.deb
65+
sudo dpkg -i subwasm_linux_amd64_v${{ env.SUBWASM_VERSION }}.deb
6466
subwasm --version
6567
- name: Show Runtime information
6668
run: |

scripts/srtool-build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -xe
44

5-
RUSTC_VERSION=1.53.0-0.9.15;
5+
RUSTC_VERSION=1.53.0-0.9.16;
66
PACKAGE=$PACKAGE;
77
BUILD_OPTS=$BUILD_OPTS;
88

9-
docker run --rm -it -e PACKAGE=$PACKAGE -e BUILD_OPTS="$BUILD_OPTS" -v $PWD:/build -v $TMPDIR/cargo:/cargo-home chevdor/srtool:$RUSTC_VERSION $*
9+
docker run --rm -it -e PACKAGE=$PACKAGE -e BUILD_OPTS="$BUILD_OPTS" -v $PWD:/build -v $TMPDIR/cargo:/cargo-home paritytech/srtool:$RUSTC_VERSION $*

0 commit comments

Comments
 (0)