Skip to content
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 @@ -25,7 +25,7 @@ jobs:
chain: ["karura"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: AcalaNetwork/Acala
ref: ${{ github.event.inputs.ref }}
Expand All @@ -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@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
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@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ${{ matrix.chain }}-runtime-info
path: |
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/manual-fellow-runtimes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the srtool repo
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
path: srtool

- name: Checkout repo ${{ inputs.repo }}
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: ${{ inputs.repo }}
ref: ${{ inputs.ref }}
Expand All @@ -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@v4
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
key: runtimes-list-${{ steps.get_commit_hash.outputs.commit_hash }}
path: |
Expand Down Expand Up @@ -106,14 +106,14 @@ jobs:
- name: Cache ${{ matrix.chain }} runtime for ${{ needs.find-runtimes.outputs.commit_hash }}
id: cache_runtime
if: inputs.cache == 'true'
uses: actions/cache@v4
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
key: ${{ matrix.chain }}-${{ needs.find-runtimes.outputs.commit_hash }}
path: |
fellows-runtimes/${{ matrix.runtime_dir }}/target/srtool/release/wbuild/${{ matrix.chain }}-runtime

- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
if: ${{ steps.cache_runtime.outputs.cache-hit != 'true' }}
with:
repository: ${{ inputs.repo }}
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@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
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@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ${{ matrix.chain }}-runtime-info
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 @@ -25,7 +25,7 @@ jobs:
chain: ["moonriver"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: PureStake/moonbeam
ref: ${{ github.event.inputs.ref }}
Expand All @@ -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@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
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@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ${{ matrix.chain }}-runtime-info
path: |
Expand Down
47 changes: 29 additions & 18 deletions .github/workflows/manual-polkadot-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ on:
required: false
profile:
description: The profile to be used for the runtime build
default: release
default: production
required: false
schedule:
- cron: "00 03 * * 1" # 3AM weekly on mondays
Expand All @@ -42,16 +42,27 @@ jobs:
outputs:
runtime: ${{ steps.get_runtimes_list.outputs.runtime }}
commit_hash: ${{ steps.get_commit_hash.outputs.commit_hash }}
srtool_tag: ${{ steps.get_srtool_tag.outputs.srtool_tag }}
runs-on: ubuntu-latest
steps:
- name: Checkout the srtool repo
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
path: srtool

- name: Determine the SRTOOL tag
id: get_srtool_tag
run: |
# Use the tag provided on manual dispatch, otherwise fall back to the
# RUSTC_VERSION pinned in this repo (e.g. on scheduled runs).
srtool_tag="${{ github.event.inputs.srtool_tag }}"
srtool_tag="${srtool_tag:-$(cat srtool/RUSTC_VERSION)}"
echo "Using SRTOOL tag: $srtool_tag"
echo "srtool_tag=$srtool_tag" >> $GITHUB_OUTPUT

- name: Checkout repo ${{ inputs.repo }}
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: paritytech/polkadot-sdk
ref: ${{ github.event.inputs.ref }}
Expand All @@ -67,7 +78,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@v4
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
key: runtimes-list-${{ steps.get_commit_hash.outputs.commit_hash }}
path: |
Expand Down Expand Up @@ -114,7 +125,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: paritytech/polkadot-sdk
fetch-depth: 0
Expand All @@ -132,33 +143,33 @@ 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@v4
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
key: ${{ matrix.chain }}-${{ needs.find-runtimes.outputs.commit_hash }}
path: |
sdk/${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile }}/wbuild/${{ matrix.chain }}-runtime
sdk/${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile || 'production' }}/wbuild/${{ matrix.chain }}-runtime

- name: Srtool build
id: srtool_build
if: ${{ steps.cache_runtime.outputs.cache-hit != 'true' }}
uses: chevdor/srtool-actions@v0.9.2
env:
BUILD_OPTS: ${{ inputs.build_opts }}
BUILD_OPTS: ${{ inputs.build_opts || '--features on-chain-release-build' }}
with:
workdir: sdk
chain: ${{ matrix.chain }}
runtime_dir: ${{ matrix.runtime_dir }}
image: ${{ github.event.inputs.image }}
tag: ${{ github.event.inputs.srtool_tag }}
profile: ${{ github.event.inputs.profile }}
image: ${{ github.event.inputs.image || 'paritytech/srtool' }}
tag: ${{ needs.find-runtimes.outputs.srtool_tag }}
profile: ${{ github.event.inputs.profile || 'production' }}

# This is done to allow caching
- name: Store build artifacts to disk
id: cache_digest
if: ${{ steps.cache_runtime.outputs.cache-hit != 'true' }}
working-directory: sdk
run: |
cached_output=${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile }}/wbuild/${{ matrix.chain }}-runtime/
cached_output=${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile || 'production' }}/wbuild/${{ matrix.chain }}-runtime/
digest_file=${cached_output}/${{ matrix.chain }}-srtool-digest.json
echo '${{ steps.srtool_build.outputs.json }}' | jq > ${digest_file}
cat ${digest_file}
Expand All @@ -170,9 +181,9 @@ jobs:
runtime_package=${{ matrix.chain }}-runtime
runtime_filename=${runtime_package//-/_}

wasm="${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile }}/wbuild/${runtime_package}/${runtime_filename}.compact.wasm"
wasm="${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile || 'production' }}/wbuild/${runtime_package}/${runtime_filename}.compact.wasm"

wasm_compressed="${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile }}/wbuild/${runtime_package}/${runtime_filename}.compact.compressed.wasm"
wasm_compressed="${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile || 'production' }}/wbuild/${runtime_package}/${runtime_filename}.compact.compressed.wasm"

# we need wasm and wasm_compressed
echo "wasm=$wasm" >> "$GITHUB_OUTPUT"
Expand All @@ -181,7 +192,7 @@ jobs:
- name: Summary
working-directory: sdk
run: |
cached_output=${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile }}/wbuild/${{ matrix.chain }}-runtime/
cached_output=${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile || 'production' }}/wbuild/${{ matrix.chain }}-runtime/
digest_file=${cached_output}/${{ matrix.chain }}-srtool-digest.json
ls -al ${digest_file}
cat ${digest_file}
Expand All @@ -190,7 +201,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@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ${{ matrix.chain }}-runtime
path: |
Expand Down Expand Up @@ -219,7 +230,7 @@ jobs:
subwasm meta --format=json ${{ steps.get_values.outputs.wasm }} | tee ${{ matrix.chain }}-metadata.json

- name: Archive Subwasm information
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ${{ matrix.chain }}-runtime-info
path: |
Expand Down Expand Up @@ -251,7 +262,7 @@ jobs:

- name: Archive Subwasm diff
if: steps.check-reference-chain.outputs.ref_chain_found == 'true'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
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 @@ -25,7 +25,7 @@ jobs:
chain: ["shiden"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: AstarNetwork/Astar
ref: ${{ github.event.inputs.ref }}
Expand All @@ -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@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
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@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ${{ matrix.chain }}-runtime-info
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 @@ -47,7 +47,7 @@ jobs:
name: Build ${{ github.event.inputs.repository }}/${{ github.event.inputs.package }} ${{ github.event.inputs.ref }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: ${{ github.event.inputs.repository }}
ref: ${{ github.event.inputs.ref }}
Expand All @@ -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@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
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@330a01c490aca151604b8cf639adc76d48f6c5d4 #v5.0.0
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ${{ github.event.inputs.chain }}-runtime-info
path: |
Expand Down
Loading
Loading