Skip to content

Commit d58d728

Browse files
pgherveoualvicsamEgorPopelyaev
authored
Update upload-artifact to v4 (#92)
* Update uploadt-artifact to v4 * update action/cache * test * bumping rustc_version to 1.84 * add wasm32v1-none * keep 1.81 for fellowship * add wasm32-unknown-unknown to srtool run * try suggestion from #90 * Bump srtool version --------- Co-authored-by: alvicsam <[email protected]> Co-authored-by: EgorPopelyaev <[email protected]>
1 parent c92a191 commit d58d728

15 files changed

+88
-75
lines changed

.github/workflows/manual-acala.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
inputs:
99
srtool_tag:
1010
description: The SRTOOL tag to use
11-
default: 1.81.0
11+
default: 1.84.0
1212
required: false
1313
ref:
1414
description: The ref to be used for the repo
@@ -47,7 +47,7 @@ jobs:
4747
4848
# it takes a while to build the runtime, so let's save the artifact as soon as we have it
4949
- name: Archive Artifacts for ${{ matrix.chain }}
50-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
50+
uses: actions/upload-artifact@v4
5151
with:
5252
name: ${{ matrix.chain }}-runtime
5353
path: |
@@ -76,7 +76,7 @@ jobs:
7676
subwasm diff ${{ steps.srtool_build.outputs.wasm }} --chain-b ${{ matrix.chain }} | tee ${{ matrix.chain }}-diff.txt
7777
7878
- name: Archive Subwasm results
79-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
79+
uses: actions/upload-artifact@v4
8080
with:
8181
name: ${{ matrix.chain }}-runtime
8282
path: |

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
default: paritytech/srtool
1313
srtool_tag:
1414
description: The SRTOOL tag to use
15-
default: 1.81.0
15+
default: 1.84.0
1616
required: false
1717
repo:
1818
description: The repo to be used to build runtimes from
@@ -59,7 +59,7 @@ jobs:
5959
- name: Cache runtimes list for ${{ steps.get_commit_hash.outputs.commit_hash }}
6060
id: cache_runtimes_list
6161
if: inputs.cache == 'true'
62-
uses: actions/cache@v3
62+
uses: actions/cache@v4
6363
with:
6464
key: runtimes-list-${{ steps.get_commit_hash.outputs.commit_hash }}
6565
path: |
@@ -106,7 +106,7 @@ jobs:
106106
- name: Cache ${{ matrix.chain }} runtime for ${{ needs.find-runtimes.outputs.commit_hash }}
107107
id: cache_runtime
108108
if: inputs.cache == 'true'
109-
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2
109+
uses: actions/cache@v4
110110
with:
111111
key: ${{ matrix.chain }}-${{ needs.find-runtimes.outputs.commit_hash }}
112112
path: |
@@ -170,7 +170,7 @@ jobs:
170170
171171
# it takes a while to build the runtime, so let's save the artifact as soon as we have it
172172
- name: Archive Artifacts for ${{ matrix.chain }}
173-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
173+
uses: actions/upload-artifact@v4
174174
with:
175175
name: ${{ matrix.chain }}-runtime
176176
path: |
@@ -205,7 +205,7 @@ jobs:
205205
subwasm diff ${{ steps.get_values.outputs.wasm }} --chain-b ${{ matrix.chain }} | tee ${{ matrix.chain }}-diff.txt
206206
207207
- name: Archive Subwasm results
208-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
208+
uses: actions/upload-artifact@v4
209209
with:
210210
name: ${{ matrix.chain }}-runtime
211211
path: |

.github/workflows/manual-moonbeam.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
inputs:
99
srtool_tag:
1010
description: The SRTOOL tag to use
11-
default: 1.81.0
11+
default: 1.84.0
1212
required: false
1313
ref:
1414
description: The ref to be used for the repo
@@ -46,7 +46,7 @@ jobs:
4646
4747
# it takes a while to build the runtime, so let's save the artifact as soon as we have it
4848
- name: Archive Artifacts for ${{ matrix.chain }}
49-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
49+
uses: actions/upload-artifact@v4
5050
with:
5151
name: ${{ matrix.chain }}-runtime
5252
path: |
@@ -76,7 +76,7 @@ jobs:
7676
echo "No live chain to compare" > ${{ matrix.chain }}-diff.txt
7777
7878
- name: Archive Subwasm results
79-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
79+
uses: actions/upload-artifact@v4
8080
with:
8181
name: ${{ matrix.chain }}-runtime
8282
path: |

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
default: paritytech/srtool
1313
srtool_tag:
1414
description: The SRTOOL tag to use
15-
default: 1.81.0
15+
default: 1.84.0
1616
repo:
1717
description: The repo to be used to build runtimes from
1818
default: paritytech/polkadot-sdk
@@ -64,7 +64,7 @@ jobs:
6464
- name: Cache runtimes list for ${{ steps.get_commit_hash.outputs.commit_hash }}
6565
id: cache_runtimes_list
6666
if: github.event.inputs.cache == 'true'
67-
uses: actions/cache@v3
67+
uses: actions/cache@v4
6868
with:
6969
key: runtimes-list-${{ steps.get_commit_hash.outputs.commit_hash }}
7070
path: |
@@ -129,7 +129,7 @@ jobs:
129129
- name: Cache ${{ matrix.chain }} runtime for ${{ needs.find-runtimes.outputs.commit_hash }}
130130
id: cache_runtime
131131
if: github.event.inputs.cache == 'true'
132-
uses: actions/cache@v3
132+
uses: actions/cache@v4
133133
with:
134134
key: ${{ matrix.chain }}-${{ needs.find-runtimes.outputs.commit_hash }}
135135
path: |
@@ -187,7 +187,7 @@ jobs:
187187
188188
# it takes a while to build the runtime, so let's save the artifact as soon as we have it
189189
- name: Archive Artifacts for ${{ matrix.chain }}
190-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
190+
uses: actions/upload-artifact@v4
191191
with:
192192
name: ${{ matrix.chain }}-runtime
193193
path: |
@@ -216,7 +216,7 @@ jobs:
216216
subwasm meta --format=json ${{ steps.get_values.outputs.wasm }} | tee ${{ matrix.chain }}-metadata.json
217217
218218
- name: Archive Subwasm information
219-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
219+
uses: actions/upload-artifact@v4
220220
with:
221221
name: ${{ matrix.chain }}-runtime
222222
path: |
@@ -248,7 +248,7 @@ jobs:
248248
249249
- name: Archive Subwasm diff
250250
if: steps.check-reference-chain.outputs.ref_chain_found == 'true'
251-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
251+
uses: actions/upload-artifact@v4
252252
with:
253253
name: ${{ matrix.chain }}-runtime-diff
254254
path: |

.github/workflows/manual-shiden.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
inputs:
99
srtool_tag:
1010
description: The SRTOOL tag to use
11-
default: 1.81.0
11+
default: 1.84.0
1212
required: false
1313
ref:
1414
description: The ref to be used for the repo
@@ -47,7 +47,7 @@ jobs:
4747
4848
# it takes a while to build the runtime, so let's save the artifact as soon as we have it
4949
- name: Archive Artifacts for ${{ matrix.chain }}
50-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
50+
uses: actions/upload-artifact@v4
5151
with:
5252
name: ${{ matrix.chain }}-runtime
5353
path: |
@@ -77,7 +77,7 @@ jobs:
7777
echo "No live chain to compare" > ${{ matrix.chain }}-diff.txt
7878
7979
- name: Archive Subwasm results
80-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
80+
uses: actions/upload-artifact@v4
8181
with:
8282
name: ${{ matrix.chain }}-runtime
8383
path: |

.github/workflows/manual.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
inputs:
99
srtool_tag:
1010
description: The SRTOOL tag to use
11-
default: 1.81.0
11+
default: 1.84.0
1212
required: false
1313
srtool_image:
1414
description: The SRTOOL image to use
@@ -74,7 +74,7 @@ jobs:
7474
7575
# it takes a while to build the runtime, so let's save the artifact as soon as we have it
7676
- name: Archive Artifacts for ${{ github.event.inputs.chain }}
77-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
77+
uses: actions/upload-artifact@v4
7878
with:
7979
name: ${{ github.event.inputs.chain }}-runtime
8080
path: |
@@ -103,7 +103,7 @@ jobs:
103103
subwasm diff ${{ steps.srtool_build.outputs.wasm }} --chain-b ${{ github.event.inputs.chain }} | tee ${{ github.event.inputs.chain }}-diff.txt
104104
105105
- name: Archive Subwasm results
106-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
106+
uses: actions/upload-artifact@v4
107107
with:
108108
name: ${{ github.event.inputs.chain }}-runtime
109109
path: |

.github/workflows/quick-test.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010

1111
workflow_dispatch:
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
build:
1519
name: Build Srtool Docker image
@@ -36,7 +40,7 @@ jobs:
3640
docker save srtool | gzip > srtool.tar.gz
3741
3842
- name: Cache the image
39-
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
43+
uses: actions/cache@v4
4044
with:
4145
key: srtool-docker-image-${{ github.sha }}
4246
path: |
@@ -48,7 +52,7 @@ jobs:
4852
continue-on-error: false
4953
steps:
5054
- name: Cache the image
51-
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
55+
uses: actions/cache@v4
5256
with:
5357
key: srtool-docker-image-${{ github.sha }}
5458
path: |
@@ -87,7 +91,7 @@ jobs:
8791
ls -al
8892
8993
- name: Cache the image
90-
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
94+
uses: actions/cache@v4
9195
with:
9296
key: srtool-docker-image-${{ github.sha }}
9397
path: |
@@ -126,7 +130,7 @@ jobs:
126130
chain: ["westend"]
127131
steps:
128132
- name: Cache the image
129-
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
133+
uses: actions/cache@v4
130134
with:
131135
key: srtool-docker-image-${{ github.sha }}
132136
path: |
@@ -211,7 +215,7 @@ jobs:
211215
echo "json=$JSON" >> $GITHUB_OUTPUT
212216
echo "JSON=$JSON" >> $GITHUB_ENV
213217
214-
echo $JSON | jq .
218+
echo $JSON
215219
216220
WASM=`echo $JSON | jq -r .runtimes.compact.wasm`
217221
echo "wasm=$WASM" >> $GITHUB_OUTPUT
@@ -240,7 +244,7 @@ jobs:
240244
echo "::endgroup::"
241245
242246
- name: Archive Artifacts for ${{ matrix.chain }}
243-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
247+
uses: actions/upload-artifact@v4
244248
with:
245249
name: ${{ matrix.chain }}-runtime
246250
path: |

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
docker save srtool | gzip > srtool.tar.gz
2626
2727
- name: Cache the image
28-
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
28+
uses: actions/cache@v4
2929
with:
3030
key: srtool-docker-image-${{ github.sha }}
3131
path: |
@@ -52,7 +52,7 @@ jobs:
5252
echo "SRTOOL_VERSION=$SRTOOL_VERSION" >> $GITHUB_ENV
5353
echo "RUSTC_VERSION=$RUSTC_VERSION" >> $GITHUB_ENV
5454
- name: Cache the image
55-
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
55+
uses: actions/cache@v4
5656
with:
5757
key: srtool-docker-image-${{ github.sha }}
5858
path: |
@@ -99,7 +99,7 @@ jobs:
9999
needs: ["create_draft"]
100100
steps:
101101
- name: Cache the image
102-
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
102+
uses: actions/cache@v4
103103
with:
104104
key: srtool-docker-image-${{ github.sha }}
105105
path: |

0 commit comments

Comments
 (0)