Skip to content

Commit 1c54b42

Browse files
Add fixes for the pipelines + latest tag for the docker image (#93)
* Add -info suffix to the artefacts with runtime info * Add default value for the BUILD_OPTS for sdk runtimes * Extend excluded runtimes * Add latest tag ti the docker image * Bump srtool version
1 parent d58d728 commit 1c54b42

10 files changed

+22
-18
lines changed

.github/workflows/manual-acala.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
- name: Archive Subwasm results
7979
uses: actions/upload-artifact@v4
8080
with:
81-
name: ${{ matrix.chain }}-runtime
81+
name: ${{ matrix.chain }}-runtime-info
8282
path: |
8383
${{ matrix.chain }}-info.json
8484
${{ matrix.chain }}-info_compressed.json

.github/workflows/manual-fellow-runtimes.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ jobs:
207207
- name: Archive Subwasm results
208208
uses: actions/upload-artifact@v4
209209
with:
210-
name: ${{ matrix.chain }}-runtime
210+
name: ${{ matrix.chain }}-runtime-info
211211
path: |
212212
fellows-runtimes/${{ matrix.chain }}-info.json
213213
fellows-runtimes/${{ matrix.chain }}-info_compressed.json

.github/workflows/manual-moonbeam.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
- name: Archive Subwasm results
7979
uses: actions/upload-artifact@v4
8080
with:
81-
name: ${{ matrix.chain }}-runtime
81+
name: ${{ matrix.chain }}-runtime-info
8282
path: |
8383
${{ matrix.chain }}-info.json
8484
${{ matrix.chain }}-info_compressed.json

.github/workflows/manual-polkadot-sdk.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ on:
2525
default: true
2626
build_opts:
2727
description: The build options to be used to build runtime (can be left empty)
28+
default: --features on-chain-release-build
2829
required: false
2930
profile:
3031
description: The profile to be used for the runtime build
@@ -82,7 +83,7 @@ jobs:
8283
if: ${{ steps.cache_runtimes_list.outputs.cache-hit != 'true' }}
8384

8485
env:
85-
EXCLUDED_RUNTIMES: "substrate-test bp cumulus-test kitchensink polkadot-test sp"
86+
EXCLUDED_RUNTIMES: "asset-hub-rococo bridge-hub-rococo contracts-rococo coretime-rococo people-rococo rococo rococo-parachain substrate-test bp cumulus-test kitchensink minimal-template parachain-template penpal polkadot-test seedling shell frame-try sp solochain-template polkadot-sdk-docs-first"
8687
run: |
8788
. ./srtool/scripts/lib.sh
8889
@@ -218,7 +219,7 @@ jobs:
218219
- name: Archive Subwasm information
219220
uses: actions/upload-artifact@v4
220221
with:
221-
name: ${{ matrix.chain }}-runtime
222+
name: ${{ matrix.chain }}-runtime-info
222223
path: |
223224
sdk/${{ matrix.chain }}-info.json
224225
sdk/${{ matrix.chain }}-info_compressed.json

.github/workflows/manual-shiden.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
- name: Archive Subwasm results
8080
uses: actions/upload-artifact@v4
8181
with:
82-
name: ${{ matrix.chain }}-runtime
82+
name: ${{ matrix.chain }}-runtime-info
8383
path: |
8484
${{ matrix.chain }}-info.json
8585
${{ matrix.chain }}-info_compressed.json

.github/workflows/manual.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ on:
3636
required: false
3737
build_opts:
3838
description: The build options to be used to build runtime (can be left empty)
39+
default: --features on-chain-release-build
3940
required: false
4041
profile:
4142
description: The profile to be used for the runtime build
@@ -105,7 +106,7 @@ jobs:
105106
- name: Archive Subwasm results
106107
uses: actions/upload-artifact@v4
107108
with:
108-
name: ${{ github.event.inputs.chain }}-runtime
109+
name: ${{ github.event.inputs.chain }}-runtime-info
109110
path: |
110111
${{ github.event.inputs.chain }}-info.json
111112
${{ github.event.inputs.chain }}-info_compressed.json

.github/workflows/release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ jobs:
126126
run: |
127127
docker tag srtool $REPO:$RUSTC_VERSION-$SRTOOL_VERSION
128128
docker tag srtool $REPO:$RUSTC_VERSION
129+
docker tag srtool $REPO:latest
129130
docker images
130131
131132
- name: Log into Docker Hub
@@ -140,3 +141,4 @@ jobs:
140141
run: |
141142
docker push $REPO:$RUSTC_VERSION-$SRTOOL_VERSION
142143
docker push $REPO:$RUSTC_VERSION
144+
docker push $REPO:latest

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Substrate Runtime Toolbox: srtool v0.18.0
1+
# Substrate Runtime Toolbox: srtool v0.18.1
22

33
![srtool docker 128px](resources/srtool-docker_128px.png)
44

@@ -18,11 +18,11 @@ The Docker images are tagged with both the rustc version used internally as well
1818

1919
You may find for instance the following:
2020

21-
- `paritytech/srtool:1.84.0-0.18.0`
21+
- `paritytech/srtool:1.84.0-0.18.1`
2222

2323
- `paritytech/srtool:1.84.0`
2424

25-
The tags not mentioning the build version always point to the latest one. In the example above, `paritytech/srtool:1.84.0` is the same image than `paritytech/srtool:1.84.0-0.18.0`.
25+
The tags not mentioning the build version always point to the latest one. In the example above, `paritytech/srtool:1.84.0` is the same image than `paritytech/srtool:1.84.0-0.18.1`.
2626

2727
## Related tools
2828

@@ -47,7 +47,7 @@ You may also want to have a look at [subwasm](https://github.com/chevdor/subwasm
4747
The project was initially developed by <https://gitlab.com/chevdor>.
4848
It has now moved to Github under the [Parity Technologies](https://www.github.com/paritytech) organisation to simplify the developement and the integration with other Parity products such as Polkadot and Kusama.
4949

50-
The last version hosted on Gitlab has been built using Rust Stable 1.84.0. It is tagged as v0.18.0 and there is no plan on updating the Gitlab repository further. New versions will be available from [this repository](https://www.github.com/paritytech/srtool) only. The functionalities remain the same so you can (and should!) simply swap `chevdor/srtool` for `paritytech/srtool` in your workflows. The [srtool-actions](https://github.com/chevdor/srtool-actions) will remain available as `chevdor/srtool-actions@<version>` and will be updated to point at the paritytech image.
50+
The last version hosted on Gitlab has been built using Rust Stable 1.84.0. It is tagged as v0.18.1 and there is no plan on updating the Gitlab repository further. New versions will be available from [this repository](https://www.github.com/paritytech/srtool) only. The functionalities remain the same so you can (and should!) simply swap `chevdor/srtool` for `paritytech/srtool` in your workflows. The [srtool-actions](https://github.com/chevdor/srtool-actions) will remain available as `chevdor/srtool-actions@<version>` and will be updated to point at the paritytech image.
5151

5252
## Install
5353

@@ -91,7 +91,7 @@ Invoking `srtool build` with
9191

9292
will output something that looks like this:
9393

94-
🧰 Substrate Runtime Toolbox - srtool v0.18.0 🧰
94+
🧰 Substrate Runtime Toolbox - srtool v0.18.1 🧰
9595
- by Chevdor -
9696
🏗 Building polkadot-runtime as release using rustc 1.84.0
9797
⏳ That can take a little while, be patient... subsequent builds will be faster.
@@ -104,7 +104,7 @@ and finally …​
104104

105105
✨ Your Substrate WASM Runtime is ready! ✨
106106
Summary:
107-
Generator : srtool v8
107+
Generator : srtool v0.18.1
108108
Version : null
109109
GIT commit : 56b9e95a9b634695f59a7c699bc68a5cfb695f03
110110
GIT tag : moonriver-genesis
@@ -134,7 +134,7 @@ If you prefer a json output, srtool has you covered:
134134
The output will look something like:
135135

136136
{
137-
"gen": "srtool v0.18.0",
137+
"gen": "srtool v0.18.1",
138138
"src": "git",
139139
"version": "1.0.0",
140140
"commit": "85cad2ef48f123d7475385b00d113bc900324ad6",
@@ -151,7 +151,7 @@ The output will look something like:
151151
"info": {
152152
"generator": {
153153
"name": "srtool",
154-
"version": "0.18.0"
154+
"version": "0.18.1"
155155
},
156156
"src": "git",
157157
"version": "1.0.0",
@@ -332,7 +332,7 @@ If you mount this docker volume, you will find the wasm on your local filesystem
332332
# REPO=fellowship-runtimes
333333
podman run --rm -it \
334334
-v $REPO:/build \
335-
`paritytech/srtool:1.84.0-0.18.0` scan
335+
`paritytech/srtool:1.84.0-0.18.1` scan
336336

337337
## ZSH/ Zinit users
338338

README_src.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:name: paritytech/srtool
22
:rsversion: 1.84.0
3-
:version: 0.18.0
3+
:version: 0.18.1
44
// :rsversion: pass:m[include:RUSTC_VERSION[]] // TODO: not working...
55
:toc: right
66
:sectnums:

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.18.0
1+
0.18.1

0 commit comments

Comments
 (0)