Skip to content

Update upload-artifact to v4 #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/manual-acala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
inputs:
srtool_tag:
description: The SRTOOL tag to use
default: 1.81.0
default: 1.84.0
required: false
ref:
description: The ref to be used for the repo
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:

# it takes a while to build the runtime, so let's save the artifact as soon as we have it
- name: Archive Artifacts for ${{ matrix.chain }}
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain }}-runtime
path: |
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
subwasm diff ${{ steps.srtool_build.outputs.wasm }} --chain-b ${{ matrix.chain }} | tee ${{ matrix.chain }}-diff.txt

- name: Archive Subwasm results
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain }}-runtime
path: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/manual-fellow-runtimes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
default: paritytech/srtool
srtool_tag:
description: The SRTOOL tag to use
default: 1.81.0
default: 1.84.0
required: false
repo:
description: The repo to be used to build runtimes from
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
- name: Cache runtimes list for ${{ steps.get_commit_hash.outputs.commit_hash }}
id: cache_runtimes_list
if: inputs.cache == 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: runtimes-list-${{ steps.get_commit_hash.outputs.commit_hash }}
path: |
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
- name: Cache ${{ matrix.chain }} runtime for ${{ needs.find-runtimes.outputs.commit_hash }}
id: cache_runtime
if: inputs.cache == 'true'
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2
uses: actions/cache@v4
with:
key: ${{ matrix.chain }}-${{ needs.find-runtimes.outputs.commit_hash }}
path: |
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:

# it takes a while to build the runtime, so let's save the artifact as soon as we have it
- name: Archive Artifacts for ${{ matrix.chain }}
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain }}-runtime
path: |
Expand Down Expand Up @@ -205,7 +205,7 @@ jobs:
subwasm diff ${{ steps.get_values.outputs.wasm }} --chain-b ${{ matrix.chain }} | tee ${{ matrix.chain }}-diff.txt

- name: Archive Subwasm results
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain }}-runtime
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/manual-moonbeam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
inputs:
srtool_tag:
description: The SRTOOL tag to use
default: 1.81.0
default: 1.84.0
required: false
ref:
description: The ref to be used for the repo
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:

# it takes a while to build the runtime, so let's save the artifact as soon as we have it
- name: Archive Artifacts for ${{ matrix.chain }}
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain }}-runtime
path: |
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
echo "No live chain to compare" > ${{ matrix.chain }}-diff.txt

- name: Archive Subwasm results
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain }}-runtime
path: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/manual-polkadot-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
default: paritytech/srtool
srtool_tag:
description: The SRTOOL tag to use
default: 1.81.0
default: 1.84.0
repo:
description: The repo to be used to build runtimes from
default: paritytech/polkadot-sdk
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Cache runtimes list for ${{ steps.get_commit_hash.outputs.commit_hash }}
id: cache_runtimes_list
if: github.event.inputs.cache == 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: runtimes-list-${{ steps.get_commit_hash.outputs.commit_hash }}
path: |
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
- name: Cache ${{ matrix.chain }} runtime for ${{ needs.find-runtimes.outputs.commit_hash }}
id: cache_runtime
if: github.event.inputs.cache == 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: ${{ matrix.chain }}-${{ needs.find-runtimes.outputs.commit_hash }}
path: |
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:

# it takes a while to build the runtime, so let's save the artifact as soon as we have it
- name: Archive Artifacts for ${{ matrix.chain }}
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain }}-runtime
path: |
Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:
subwasm meta --format=json ${{ steps.get_values.outputs.wasm }} | tee ${{ matrix.chain }}-metadata.json

- name: Archive Subwasm information
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain }}-runtime
path: |
Expand Down Expand Up @@ -248,7 +248,7 @@ jobs:

- name: Archive Subwasm diff
if: steps.check-reference-chain.outputs.ref_chain_found == 'true'
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain }}-runtime-diff
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/manual-shiden.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
inputs:
srtool_tag:
description: The SRTOOL tag to use
default: 1.81.0
default: 1.84.0
required: false
ref:
description: The ref to be used for the repo
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:

# it takes a while to build the runtime, so let's save the artifact as soon as we have it
- name: Archive Artifacts for ${{ matrix.chain }}
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain }}-runtime
path: |
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
echo "No live chain to compare" > ${{ matrix.chain }}-diff.txt

- name: Archive Subwasm results
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain }}-runtime
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
inputs:
srtool_tag:
description: The SRTOOL tag to use
default: 1.81.0
default: 1.84.0
required: false
srtool_image:
description: The SRTOOL image to use
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:

# it takes a while to build the runtime, so let's save the artifact as soon as we have it
- name: Archive Artifacts for ${{ github.event.inputs.chain }}
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.inputs.chain }}-runtime
path: |
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
subwasm diff ${{ steps.srtool_build.outputs.wasm }} --chain-b ${{ github.event.inputs.chain }} | tee ${{ github.event.inputs.chain }}-diff.txt

- name: Archive Subwasm results
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.inputs.chain }}-runtime
path: |
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/quick-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build Srtool Docker image
Expand All @@ -36,7 +40,7 @@ jobs:
docker save srtool | gzip > srtool.tar.gz

- name: Cache the image
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
uses: actions/cache@v4
with:
key: srtool-docker-image-${{ github.sha }}
path: |
Expand All @@ -48,7 +52,7 @@ jobs:
continue-on-error: false
steps:
- name: Cache the image
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
uses: actions/cache@v4
with:
key: srtool-docker-image-${{ github.sha }}
path: |
Expand Down Expand Up @@ -87,7 +91,7 @@ jobs:
ls -al

- name: Cache the image
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
uses: actions/cache@v4
with:
key: srtool-docker-image-${{ github.sha }}
path: |
Expand Down Expand Up @@ -126,7 +130,7 @@ jobs:
chain: ["westend"]
steps:
- name: Cache the image
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
uses: actions/cache@v4
with:
key: srtool-docker-image-${{ github.sha }}
path: |
Expand Down Expand Up @@ -211,7 +215,7 @@ jobs:
echo "json=$JSON" >> $GITHUB_OUTPUT
echo "JSON=$JSON" >> $GITHUB_ENV

echo $JSON | jq .
echo $JSON

WASM=`echo $JSON | jq -r .runtimes.compact.wasm`
echo "wasm=$WASM" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -240,7 +244,7 @@ jobs:
echo "::endgroup::"

- name: Archive Artifacts for ${{ matrix.chain }}
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain }}-runtime
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
docker save srtool | gzip > srtool.tar.gz

- name: Cache the image
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
uses: actions/cache@v4
with:
key: srtool-docker-image-${{ github.sha }}
path: |
Expand All @@ -52,7 +52,7 @@ jobs:
echo "SRTOOL_VERSION=$SRTOOL_VERSION" >> $GITHUB_ENV
echo "RUSTC_VERSION=$RUSTC_VERSION" >> $GITHUB_ENV
- name: Cache the image
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
uses: actions/cache@v4
with:
key: srtool-docker-image-${{ github.sha }}
path: |
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
needs: ["create_draft"]
steps:
- name: Cache the image
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
uses: actions/cache@v4
with:
key: srtool-docker-image-${{ github.sha }}
path: |
Expand Down
Loading
Loading