mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 19:41:05 +00:00
GHA updates and pin (#1768)
* Pin checkout to v3.1.0 and update srtool-actions to v0.6.0 * Pin GHA ruby/setup-ruby to 1.118.0 * Update and pin GHA deps * Pin all external GHA deps
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ github.event.pull_request.head.ref }}
|
ref: ${{ github.event.pull_request.head.ref }}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -17,7 +17,7 @@ jobs:
|
|||||||
protoc --version
|
protoc --version
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
|
|
||||||
- name: Rust versions
|
- name: Rust versions
|
||||||
run: rustup show
|
run: rustup show
|
||||||
|
|||||||
+4
-4
@@ -15,7 +15,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Install Rust nightly toolchain
|
- name: Install Rust nightly toolchain
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f # v1.0.7
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: nightly
|
toolchain: nightly
|
||||||
@@ -23,7 +23,7 @@ jobs:
|
|||||||
components: clippy, rustfmt
|
components: clippy, rustfmt
|
||||||
|
|
||||||
- name: Cache Dependencies & Build Outputs
|
- name: Cache Dependencies & Build Outputs
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry
|
~/.cargo/registry
|
||||||
@@ -31,10 +31,10 @@ jobs:
|
|||||||
target
|
target
|
||||||
key: ${{ runner.os }}-${{ matrix.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-${{ matrix.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
|
|
||||||
- name: Cargo fmt
|
- name: Cargo fmt
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@ae10961054e4aa8b4aa7dffede299aaf087aa33b # v1.0.3
|
||||||
with:
|
with:
|
||||||
command: fmt
|
command: fmt
|
||||||
args: --all -- --check
|
args: --all -- --check
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ jobs:
|
|||||||
pre-releases: true
|
pre-releases: true
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- id: compute_tag
|
- id: compute_tag
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Save output as artifact
|
- name: Save output as artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
name: ${{ env.CHAIN }}
|
name: ${{ env.CHAIN }}
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ jobs:
|
|||||||
cat output.txt
|
cat output.txt
|
||||||
|
|
||||||
- name: Save output as artifact
|
- name: Save output as artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.runtime }}
|
name: ${{ matrix.runtime }}
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
+13
-13
@@ -62,13 +62,13 @@ jobs:
|
|||||||
runtime: rococo-parachain
|
runtime: rococo-parachain
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.ref2 }}
|
ref: ${{ github.event.inputs.ref2 }}
|
||||||
|
|
||||||
- name: Cache target dir
|
- name: Cache target dir
|
||||||
if: ${{ github.event.inputs.release_type != 'client' }}
|
if: ${{ github.event.inputs.release_type != 'client' }}
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
|
||||||
with:
|
with:
|
||||||
path: "${{ github.workspace }}/runtime/${{ matrix.runtime }}/target"
|
path: "${{ github.workspace }}/runtime/${{ matrix.runtime }}/target"
|
||||||
key: srtool-target-${{ matrix.runtime }}-${{ github.sha }}
|
key: srtool-target-${{ matrix.runtime }}-${{ github.sha }}
|
||||||
@@ -79,7 +79,7 @@ jobs:
|
|||||||
- name: Build ${{ matrix.runtime }} runtime
|
- name: Build ${{ matrix.runtime }} runtime
|
||||||
if: ${{ github.event.inputs.release_type != 'client' }}
|
if: ${{ github.event.inputs.release_type != 'client' }}
|
||||||
id: srtool_build
|
id: srtool_build
|
||||||
uses: chevdor/srtool-actions@v0.5.0
|
uses: chevdor/srtool-actions@v0.6.0
|
||||||
with:
|
with:
|
||||||
image: paritytech/srtool
|
image: paritytech/srtool
|
||||||
chain: ${{ matrix.runtime }}
|
chain: ${{ matrix.runtime }}
|
||||||
@@ -93,14 +93,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload ${{ matrix.runtime }} srtool json
|
- name: Upload ${{ matrix.runtime }} srtool json
|
||||||
if: ${{ github.event.inputs.release_type != 'client' }}
|
if: ${{ github.event.inputs.release_type != 'client' }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.runtime }}-srtool-json
|
name: ${{ matrix.runtime }}-srtool-json
|
||||||
path: ${{ matrix.runtime }}-srtool-digest.json
|
path: ${{ matrix.runtime }}-srtool-digest.json
|
||||||
|
|
||||||
- name: Upload ${{ matrix.runtime }} runtime
|
- name: Upload ${{ matrix.runtime }} runtime
|
||||||
if: ${{ github.event.inputs.release_type != 'client' }}
|
if: ${{ github.event.inputs.release_type != 'client' }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.runtime }}-runtime
|
name: ${{ matrix.runtime }}-runtime
|
||||||
path: |
|
path: |
|
||||||
@@ -114,18 +114,18 @@ jobs:
|
|||||||
asset_upload_url: ${{ steps.create-release.outputs.upload_url }}
|
asset_upload_url: ${{ steps.create-release.outputs.upload_url }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
path: cumulus
|
path: cumulus
|
||||||
ref: ${{ github.event.inputs.ref2 }}
|
ref: ${{ github.event.inputs.ref2 }}
|
||||||
|
|
||||||
- uses: ruby/setup-ruby@v1
|
- uses: ruby/setup-ruby@eae47962baca661befdfd24e4d6c34ade04858f7 # v1.118.0
|
||||||
with:
|
with:
|
||||||
ruby-version: 3.0.0
|
ruby-version: 3.0.0
|
||||||
|
|
||||||
- name: Download srtool json output
|
- name: Download srtool json output
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # v3.0.0
|
||||||
|
|
||||||
- name: Prepare tooling
|
- name: Prepare tooling
|
||||||
run: |
|
run: |
|
||||||
@@ -177,14 +177,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Archive srtool json
|
- name: Archive srtool json
|
||||||
if: ${{ github.event.inputs.release_type != 'client' }}
|
if: ${{ github.event.inputs.release_type != 'client' }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
name: srtool-json
|
name: srtool-json
|
||||||
path: |
|
path: |
|
||||||
**/*-srtool-digest.json
|
**/*-srtool-digest.json
|
||||||
|
|
||||||
- name: Archive context artifact
|
- name: Archive context artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
name: release-notes-context
|
name: release-notes-context
|
||||||
path: |
|
path: |
|
||||||
@@ -228,14 +228,14 @@ jobs:
|
|||||||
runtime: rococo-parachain
|
runtime: rococo-parachain
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.ref2 }}
|
ref: ${{ github.event.inputs.ref2 }}
|
||||||
|
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # v3.0.0
|
||||||
|
|
||||||
- uses: ruby/setup-ruby@v1
|
- uses: ruby/setup-ruby@eae47962baca661befdfd24e4d6c34ade04858f7 # v1.118.0
|
||||||
with:
|
with:
|
||||||
ruby-version: 3.0.0
|
ruby-version: 3.0.0
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -25,7 +25,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.release.tag_name }}
|
ref: ${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
@@ -91,7 +91,7 @@ jobs:
|
|||||||
./docker/scripts/build-injected-image.sh
|
./docker/scripts/build-injected-image.sh
|
||||||
|
|
||||||
- name: Login to Dockerhub
|
- name: Login to Dockerhub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.1.0
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|||||||
+2
-2
@@ -20,7 +20,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.release.tag_name }}
|
ref: ${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
@@ -90,7 +90,7 @@ jobs:
|
|||||||
./docker/scripts/build-injected-image.sh
|
./docker/scripts/build-injected-image.sh
|
||||||
|
|
||||||
- name: Login to Dockerhub
|
- name: Login to Dockerhub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.1.0
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|||||||
Vendored
+4
-4
@@ -48,13 +48,13 @@ jobs:
|
|||||||
- category: testing
|
- category: testing
|
||||||
runtime: rococo-parachain
|
runtime: rococo-parachain
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Srtool build
|
- name: Srtool build
|
||||||
id: srtool_build
|
id: srtool_build
|
||||||
uses: chevdor/srtool-actions@v0.5.0
|
uses: chevdor/srtool-actions@v0.6.0
|
||||||
with:
|
with:
|
||||||
chain: ${{ matrix.runtime }}
|
chain: ${{ matrix.runtime }}
|
||||||
runtime_dir: parachains/runtimes/${{ matrix.category }}/${{ matrix.runtime }}
|
runtime_dir: parachains/runtimes/${{ matrix.category }}/${{ matrix.runtime }}
|
||||||
@@ -68,7 +68,7 @@ jobs:
|
|||||||
|
|
||||||
# it takes a while to build the runtime, so let's save the artifact as soon as we have it
|
# 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.runtime }}
|
- name: Archive Artifacts for ${{ matrix.runtime }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.runtime }}-runtime
|
name: ${{ matrix.runtime }}-runtime
|
||||||
path: |
|
path: |
|
||||||
@@ -106,7 +106,7 @@ jobs:
|
|||||||
tee ${{ matrix.runtime }}-diff.txt
|
tee ${{ matrix.runtime }}-diff.txt
|
||||||
|
|
||||||
- name: Archive Subwasm results
|
- name: Archive Subwasm results
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.runtime }}-runtime
|
name: ${{ matrix.runtime }}-runtime
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
Reference in New Issue
Block a user