Skip to content

Commit a88c728

Browse files
authored
Release 0.9.16 (#18)
* feat: install toml-cli from binary * fix #17 * ci: slow down on CI runs * chore: upgrade subwasm * feat: report versions of the tools * chore: minor fixes * chore: bump version and upgrade subwasm * docs: add descriptions to the recipes * ci: specify the ref to be used to test PRs * test: upgrade subwasm in the test workflows * ci: ensure we don't use an old image from the cache * fix: fix bash test
1 parent 0bbbc14 commit a88c728

14 files changed

+80
-38
lines changed

.github/workflows/manual-acala.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Manual Build - Acala
2+
3+
env:
4+
SUBWASM_VERSION: 0.13.2
5+
26
on:
37
workflow_dispatch:
48
inputs:
@@ -52,10 +56,10 @@ jobs:
5256
${{ matrix.chain }}-srtool-digest.json
5357
5458
# We now get extra information thanks to subwasm,
55-
- name: Install subwasm
59+
- name: Install subwasm ${{ SUBWASM_VERSION }}
5660
run: |
57-
wget https://github.com/chevdor/subwasm/releases/download/v0.12.0/subwasm_linux_amd64_v0.12.0.deb
58-
sudo dpkg -i subwasm_linux_amd64_v0.12.0.deb
61+
wget https://github.com/chevdor/subwasm/releases/download/v0.12.0/subwasm_linux_amd64_v${{ SUBWASM_VERSION }}.deb
62+
sudo dpkg -i subwasm_linux_amd64_v${{ SUBWASM_VERSION }}.deb
5963
subwasm --version
6064
- name: Show Runtime information
6165
run: |

.github/workflows/manual-bridges.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Manual Build - Bridges
2+
3+
env:
4+
SUBWASM_VERSION: 0.13.2
5+
26
on:
37
workflow_dispatch:
48
inputs:
@@ -53,10 +57,10 @@ jobs:
5357
${{ matrix.chain }}-srtool-digest.json
5458
5559
# We now get extra information thanks to subwasm,
56-
- name: Install subwasm
60+
- name: Install subwasm ${{ SUBWASM_VERSION }}
5761
run: |
58-
wget https://github.com/chevdor/subwasm/releases/download/v0.12.0/subwasm_linux_amd64_v0.12.0.deb
59-
sudo dpkg -i subwasm_linux_amd64_v0.12.0.deb
62+
wget https://github.com/chevdor/subwasm/releases/download/v0.12.0/subwasm_linux_amd64_v${{ SUBWASM_VERSION }}.deb
63+
sudo dpkg -i subwasm_linux_amd64_v${{ SUBWASM_VERSION }}.deb
6064
subwasm --version
6165
- name: Show Runtime information
6266
run: |

.github/workflows/manual-cumulus.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Manual Build - Cumulus
2+
3+
env:
4+
SUBWASM_VERSION: 0.13.2
5+
26
on:
37
workflow_dispatch:
48
inputs:
@@ -53,10 +57,10 @@ jobs:
5357
${{ matrix.chain }}-srtool-digest.json
5458
5559
# We now get extra information thanks to subwasm
56-
- name: Install subwasm
60+
- name: Install subwasm ${{ SUBWASM_VERSION }}
5761
run: |
58-
wget https://github.com/chevdor/subwasm/releases/download/v0.12.0/subwasm_linux_amd64_v0.12.0.deb
59-
sudo dpkg -i subwasm_linux_amd64_v0.12.0.deb
62+
wget https://github.com/chevdor/subwasm/releases/download/v0.12.0/subwasm_linux_amd64_v${{ SUBWASM_VERSION }}.deb
63+
sudo dpkg -i subwasm_linux_amd64_v${{ SUBWASM_VERSION }}.deb
6064
subwasm --version
6165
- name: Show Runtime information
6266
run: |

.github/workflows/manual-moonbeam.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Manual Build - Moonbeam
2+
3+
env:
4+
SUBWASM_VERSION: 0.13.2
5+
26
on:
37
workflow_dispatch:
48
inputs:
@@ -51,10 +55,10 @@ jobs:
5155
${{ matrix.chain }}-srtool-digest.json
5256
5357
# We now get extra information thanks to subwasm,
54-
- name: Install subwasm
58+
- name: Install subwasm ${{ SUBWASM_VERSION }}
5559
run: |
56-
wget https://github.com/chevdor/subwasm/releases/download/v0.12.0/subwasm_linux_amd64_v0.12.0.deb
57-
sudo dpkg -i subwasm_linux_amd64_v0.12.0.deb
60+
wget https://github.com/chevdor/subwasm/releases/download/v0.12.0/subwasm_linux_amd64_v${{ SUBWASM_VERSION }}.deb
61+
sudo dpkg -i subwasm_linux_amd64_v${{ SUBWASM_VERSION }}.deb
5862
subwasm --version
5963
- name: Show Runtime information
6064
run: |

.github/workflows/manual-polkadot.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Manual Build - Polkadot
2+
3+
env:
4+
SUBWASM_VERSION: 0.13.2
5+
26
on:
37
workflow_dispatch:
48
inputs:
@@ -52,10 +56,10 @@ jobs:
5256
${{ matrix.chain }}-srtool-digest.json
5357
5458
# We now get extra information thanks to subwasm,
55-
- name: Install subwasm
59+
- name: Install subwasm ${{ SUBWASM_VERSION }}
5660
run: |
57-
wget https://github.com/chevdor/subwasm/releases/download/v0.12.0/subwasm_linux_amd64_v0.12.0.deb
58-
sudo dpkg -i subwasm_linux_amd64_v0.12.0.deb
61+
wget https://github.com/chevdor/subwasm/releases/download/v0.12.0/subwasm_linux_amd64_v${{ SUBWASM_VERSION }}.deb
62+
sudo dpkg -i subwasm_linux_amd64_v${{ SUBWASM_VERSION }}.deb
5963
subwasm --version
6064
- name: Show Runtime information
6165
run: |

.github/workflows/manual-shiden.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Manual Build - Shiden
22

33
env:
4+
SUBWASM_VERSION: 0.13.2
45
REF_FOR_SCHEDULE: production/shiden
56

67
on:
@@ -56,10 +57,10 @@ jobs:
5657
${{ matrix.chain }}-srtool-digest.json
5758
5859
# We now get extra information thanks to subwasm,
59-
- name: Install subwasm
60+
- name: Install subwasm ${{ SUBWASM_VERSION }}
6061
run: |
61-
wget https://github.com/chevdor/subwasm/releases/download/v0.12.0/subwasm_linux_amd64_v0.12.0.deb
62-
sudo dpkg -i subwasm_linux_amd64_v0.12.0.deb
62+
wget https://github.com/chevdor/subwasm/releases/download/v0.12.0/subwasm_linux_amd64_v${{ SUBWASM_VERSION }}.deb
63+
sudo dpkg -i subwasm_linux_amd64_v${{ SUBWASM_VERSION }}.deb
6364
subwasm --version
6465
- name: Show Runtime information
6566
run: |

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Cache the image
2828
uses: actions/cache@v2
2929
with:
30-
key: srtool-docker-image
30+
key: srtool-docker-image-${{ github.sha }}
3131
path: |
3232
srtool.tar.gz
3333
@@ -54,7 +54,7 @@ jobs:
5454
- name: Cache the image
5555
uses: actions/cache@v2
5656
with:
57-
key: srtool-docker-image
57+
key: srtool-docker-image-${{ github.sha }}
5858
path: |
5959
srtool.tar.gz
6060
@@ -101,7 +101,7 @@ jobs:
101101
- name: Cache the image
102102
uses: actions/cache@v2
103103
with:
104-
key: srtool-docker-image
104+
key: srtool-docker-image-${{ github.sha }}
105105
path: |
106106
srtool.tar.gz
107107

.github/workflows/tests.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ name: Build & Tests
22
on:
33
push:
44
branches:
5-
- "*"
5+
- master
6+
tags:
7+
- "!v*"
8+
9+
pull_request:
610

711
workflow_dispatch:
812

@@ -16,11 +20,14 @@ jobs:
1620
continue-on-error: false
1721
steps:
1822
- uses: actions/checkout@v2
23+
with:
24+
ref: ${{ github.event.pull_request.head.sha }}
1925

2026
- name: Build image
2127
run: |
2228
SRTOOL_VERSION=$(cat VERSION)
2329
RUSTC_VERSION=$(cat RUSTC_VERSION)
30+
echo Building tag $RUSTC_VERSION:$SRTOOL_VERSION
2431
echo "SRTOOL_VERSION=$SRTOOL_VERSION" >> $GITHUB_ENV
2532
echo "RUSTC_VERSION=$RUSTC_VERSION" >> $GITHUB_ENV
2633
docker --version
@@ -34,7 +41,7 @@ jobs:
3441
- name: Cache the image
3542
uses: actions/cache@v2
3643
with:
37-
key: srtool-docker-image
44+
key: srtool-docker-image-${{ github.sha }}
3845
path: |
3946
srtool.tar.gz
4047
@@ -46,7 +53,7 @@ jobs:
4653
- name: Cache the image
4754
uses: actions/cache@v2
4855
with:
49-
key: srtool-docker-image
56+
key: srtool-docker-image-${{ github.sha }}
5057
path: |
5158
srtool.tar.gz
5259
@@ -81,7 +88,7 @@ jobs:
8188
- name: Cache the image
8289
uses: actions/cache@v2
8390
with:
84-
key: srtool-docker-image
91+
key: srtool-docker-image-${{ github.sha }}
8592
path: |
8693
srtool.tar.gz
8794
@@ -178,7 +185,7 @@ jobs:
178185
- name: Cache the image
179186
uses: actions/cache@v2
180187
with:
181-
key: srtool-docker-image
188+
key: srtool-docker-image-${{ github.sha }}
182189
path: |
183190
srtool.tar.gz
184191
@@ -275,7 +282,7 @@ jobs:
275282
- name: Cache the image
276283
uses: actions/cache@v2
277284
with:
278-
key: srtool-docker-image
285+
key: srtool-docker-image-${{ github.sha }}
279286
path: |
280287
srtool.tar.gz
281288

Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ ENV CARGO_HOME="/cargo-home"
1616
ENV DEBIAN_FRONTEND=noninteractive
1717

1818
# Tooling
19-
ENV SUBWASM_VERSION=0.12.0
20-
ENV TERA_CLI_VERSION=0.1.3
19+
ARG SUBWASM_VERSION=0.13.2
20+
ARG TERA_CLI_VERSION=0.1.3
21+
ARG TOML_CLI_VERSION=0.2.1
2122

2223
# We first init as much as we can in the first layers
2324
COPY ./scripts/init.sh /srtool/
@@ -34,11 +35,9 @@ RUN apt update && \
3435
ENV PATH="/srtool:/cargo-home/bin:$PATH"
3536
RUN export PATH=/cargo-home/bin:/rustup-home:$PATH && \
3637
/srtool/init.sh && \
37-
curl -L https://github.com/chevdor/subwasm/releases/download/v${SUBWASM_VERSION}/subwasm_linux_amd64_v${SUBWASM_VERSION}.deb --output subwasm.deb && \
38-
dpkg -i subwasm.deb && subwasm --version && \
39-
curl -L https://github.com/chevdor/tera-cli/releases/download/v${TERA_CLI_VERSION}/tera-cli_linux_amd64.deb --output tera_cli.deb && \
40-
dpkg -i tera_cli.deb && tera --version && \
41-
cargo install --git https://github.com/chevdor/toml-cli --tag v0.2.0 && \
38+
curl -L https://github.com/chevdor/subwasm/releases/download/v${SUBWASM_VERSION}/subwasm_linux_amd64_v${SUBWASM_VERSION}.deb --output subwasm.deb && dpkg -i subwasm.deb && subwasm --version && \
39+
curl -L https://github.com/chevdor/tera-cli/releases/download/v${TERA_CLI_VERSION}/tera-cli_linux_amd64.deb --output tera_cli.deb && dpkg -i tera_cli.deb && tera --version && \
40+
curl -L https://github.com/chevdor/toml-cli/releases/download/v${TOML_CLI_VERSION}/toml_linux_amd64_v${TOML_CLI_VERSION}.deb --output toml.deb && dpkg -i toml.deb && toml --version && \
4241
mv -f /cargo-home/bin/* /bin && \
4342
touch /cargo-home/env && \
4443
mkdir /out && \

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.9.15
1+
0.9.16

0 commit comments

Comments
 (0)