Skip to content
Closed
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
48 changes: 27 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

env:
VERBOSE: ${{ github.events.input.verbose }}
SUBWASM_VERSION: 0.17.0
SUBWASM_VERSION: 0.18.0


jobs:
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
os: [ubuntu-22.04]
rust: [stable]
binary: [release]
env:
Expand All @@ -73,6 +73,11 @@ jobs:
with:
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}-${{ matrix.binary }}

- name: Install protobuf
run: |
sudo apt update
sudo apt install --assume-yes protobuf-compiler

- name: Release
if: ${{ matrix.binary == 'release' }}
run: cargo build --release
Expand Down Expand Up @@ -185,7 +190,7 @@ jobs:

- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.4.0
uses: chevdor/srtool-actions@v0.6.0
with:
chain: ${{ matrix.runtime }}
runtime_dir: polkadot-parachains/${{ matrix.runtime }}-runtime
Expand All @@ -197,6 +202,16 @@ jobs:
echo "Compact Runtime: ${{ steps.srtool_build.outputs.wasm }}"
echo "Compressed Runtime: ${{ steps.srtool_build.outputs.wasm_compressed }}"

# 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 }}
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
with:
name: ${{ matrix.runtime }}-runtime-${{ github.sha }}
path: |
${{ steps.srtool_build.outputs.wasm }}
${{ steps.srtool_build.outputs.wasm_compressed }}
${{ matrix.runtime }}-srtool-digest.json

# We now get extra information thanks to subwasm
- name: Install subwasm
run: |
Expand Down Expand Up @@ -225,25 +240,15 @@ jobs:
# subwasm diff ${{ steps.srtool_build.outputs.wasm }} --chain-b ${{ matrix.chain }} > ${{ matrix.chain }}-diff.txt
# cat ${{ matrix.chain }}-diff.txt

- name: Upload ${{ matrix.runtime }} srtool json
uses: actions/upload-artifact@v2
- name: Archive Subwasm results
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
with:
name: ${{ matrix.runtime }}-srtool-json-${{ github.sha }}
path: |
${{ matrix.runtime }}-srtool-digest.json
${{ matrix.runtime }}-info.json
${{ matrix.runtime }}-compressed-info.json
${{ matrix.runtime }}-metadata.json
# ${{ matrix.runtime }}-diff.txt


- name: Upload ${{ matrix.runtime }} runtime
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.runtime }}-runtime-${{ github.sha }}
path: |
${{ steps.srtool_build.outputs.wasm }}
${{ steps.srtool_build.outputs.wasm_compressed }}
${{ matrix.runtime }}-diff.txt

- name: Slack Notification
uses: 8398a7/action-slack@v3
Expand Down Expand Up @@ -289,7 +294,7 @@ jobs:
sha256sum ${{ env.CHAIN_SPEC }}.json >> checksums.txt

- name: Upload ${{ env.CHAIN_SPEC }} Files
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
with:
name: ${{ env.CHAIN_SPEC }}-${{ github.sha }}
path: |
Expand Down Expand Up @@ -363,11 +368,12 @@ jobs:
runtime: ["shell", "integritee"]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v2
- name: Set up Ruby 2.7
uses: actions/setup-ruby@v1
- uses: actions/download-artifact@v3

- name: Set up Ruby 3
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: '3.0'

- name: Get runtime version
id: get-runtime-ver
Expand Down
Loading