mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-25 04:47:56 +00:00
dir restructure to support more CGP (#1266)
* rerame res to chain-specs * split polkadot-parachains dir * rename dir parachains-common to common Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Co-authored-by: Wilfried Kopp <wilfried@parity.io> Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
This commit is contained in:
@@ -5,11 +5,11 @@ on:
|
||||
inputs:
|
||||
ref1:
|
||||
description: The 'from' tag to use for the diff
|
||||
default: parachains-v7.0.0
|
||||
default: parachains-v9.0.0
|
||||
required: true
|
||||
ref2:
|
||||
description: The 'to' tag to use for the diff
|
||||
default: release-parachains-v8.0.0
|
||||
default: release-parachains-v10.0.0
|
||||
required: true
|
||||
release_type:
|
||||
description: Pass "client" for client releases, leave empty otherwise
|
||||
@@ -42,8 +42,22 @@ jobs:
|
||||
build-runtimes:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
runtime: ["shell", "statemine", "statemint", "westmint", "rococo-parachain", "contracts-rococo"]
|
||||
matrix:
|
||||
include:
|
||||
- category: assets
|
||||
runtime: statemine
|
||||
- category: assets
|
||||
runtime: statemint
|
||||
- category: assets
|
||||
runtime: westmint
|
||||
- category: contracts
|
||||
runtime: contracts-rococo
|
||||
- category: starters
|
||||
runtime: seedling
|
||||
- category: starters
|
||||
runtime: shell
|
||||
- category: testing
|
||||
runtime: rococo-parachain
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v3
|
||||
@@ -67,7 +81,7 @@ jobs:
|
||||
with:
|
||||
image: paritytech/srtool
|
||||
chain: ${{ matrix.runtime }}
|
||||
runtime_dir: polkadot-parachains/${{ matrix.runtime }}
|
||||
runtime_dir: parachains/runtimes/${{ matrix.category }}/${{ matrix.runtime }}
|
||||
|
||||
- name: Store srtool digest to disk
|
||||
if: ${{ github.event.inputs.release_type != 'client' }}
|
||||
@@ -188,10 +202,24 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: ["publish-draft-release"]
|
||||
env:
|
||||
RUNTIME_DIR: polkadot-parachains
|
||||
RUNTIME_DIR: parachains/runtimes
|
||||
strategy:
|
||||
matrix:
|
||||
runtime: ["shell", "statemine", "statemint", "westmint", "rococo-parachain", "contracts-rococo"]
|
||||
matrix:
|
||||
include:
|
||||
- category: assets
|
||||
runtime: statemine
|
||||
- category: assets
|
||||
runtime: statemint
|
||||
- category: assets
|
||||
runtime: westmint
|
||||
- category: contracts
|
||||
runtime: contracts-rococo
|
||||
- category: starters
|
||||
runtime: seedling
|
||||
- category: starters
|
||||
runtime: shell
|
||||
- category: testing
|
||||
runtime: rococo-parachain
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v3
|
||||
@@ -209,10 +237,10 @@ jobs:
|
||||
id: get-runtime-ver
|
||||
run: |
|
||||
echo "require './scripts/ci/github/runtime-version.rb'" > script.rb
|
||||
echo "puts get_runtime(runtime: \"${{ matrix.runtime }}\", runtime_dir: \"$RUNTIME_DIR\")" >> script.rb
|
||||
echo "puts get_runtime(runtime: \"${{ matrix.runtime }}\", runtime_dir: \"$RUNTIME_DIR/${{ matrix.category }}\")" >> script.rb
|
||||
|
||||
echo "Current folder: $PWD"
|
||||
ls "$RUNTIME_DIR/${{ matrix.runtime }}"
|
||||
ls "$RUNTIME_DIR/${{ matrix.category }}/${{ matrix.runtime }}"
|
||||
runtime_ver=$(ruby script.rb)
|
||||
echo "Found version: >$runtime_ver<"
|
||||
echo "::set-output name=runtime_ver::$runtime_ver"
|
||||
|
||||
@@ -8,11 +8,14 @@ on:
|
||||
tags:
|
||||
- "*"
|
||||
|
||||
paths-ignore:
|
||||
- "docker"
|
||||
- "docs"
|
||||
- "scripts"
|
||||
- "test"
|
||||
# paths-ignore:
|
||||
# - "docker"
|
||||
# - "docs"
|
||||
# - "scripts"
|
||||
# - "test"
|
||||
# - "client"
|
||||
paths:
|
||||
- parachains/runtimes/**/*
|
||||
|
||||
branches:
|
||||
- "release*"
|
||||
@@ -27,7 +30,21 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
chain: ["statemine", "westmint", "statemint", "rococo-parachain", "shell", "contracts-rococo"]
|
||||
include:
|
||||
- category: assets
|
||||
runtime: statemine
|
||||
- category: assets
|
||||
runtime: statemint
|
||||
- category: assets
|
||||
runtime: westmint
|
||||
- category: contracts
|
||||
runtime: contracts-rococo
|
||||
- category: starters
|
||||
runtime: seedling
|
||||
- category: starters
|
||||
runtime: shell
|
||||
- category: testing
|
||||
runtime: rococo-parachain
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
@@ -37,25 +54,25 @@ jobs:
|
||||
id: srtool_build
|
||||
uses: chevdor/srtool-actions@v0.4.0
|
||||
with:
|
||||
chain: ${{ matrix.chain }}
|
||||
runtime_dir: polkadot-parachains/${{ matrix.chain }}
|
||||
chain: ${{ matrix.runtime }}
|
||||
runtime_dir: parachains/runtimes/${{ matrix.category }}/${{ matrix.runtime }}
|
||||
|
||||
- name: Summary
|
||||
run: |
|
||||
echo '${{ steps.srtool_build.outputs.json }}' | jq > ${{ matrix.chain }}-srtool-digest.json
|
||||
cat ${{ matrix.chain }}-srtool-digest.json
|
||||
echo '${{ steps.srtool_build.outputs.json }}' | jq > ${{ matrix.runtime }}-srtool-digest.json
|
||||
cat ${{ matrix.runtime }}-srtool-digest.json
|
||||
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.chain }}
|
||||
- name: Archive Artifacts for ${{ matrix.runtime }}
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ matrix.chain }}-runtime
|
||||
name: ${{ matrix.runtime }}-runtime
|
||||
path: |
|
||||
${{ steps.srtool_build.outputs.wasm }}
|
||||
${{ steps.srtool_build.outputs.wasm_compressed }}
|
||||
${{ matrix.chain }}-srtool-digest.json
|
||||
${{ matrix.runtime }}-srtool-digest.json
|
||||
|
||||
# We now get extra information thanks to subwasm
|
||||
- name: Install subwasm
|
||||
@@ -69,29 +86,29 @@ jobs:
|
||||
run: |
|
||||
subwasm info ${{ steps.srtool_build.outputs.wasm }}
|
||||
subwasm info ${{ steps.srtool_build.outputs.wasm_compressed }}
|
||||
subwasm --json info ${{ steps.srtool_build.outputs.wasm }} > ${{ matrix.chain }}-info.json
|
||||
subwasm --json info ${{ steps.srtool_build.outputs.wasm_compressed }} > ${{ matrix.chain }}-compressed-info.json
|
||||
subwasm --json info ${{ steps.srtool_build.outputs.wasm }} > ${{ matrix.runtime }}-info.json
|
||||
subwasm --json info ${{ steps.srtool_build.outputs.wasm_compressed }} > ${{ matrix.runtime }}-compressed-info.json
|
||||
|
||||
- name: Extract the metadata
|
||||
shell: bash
|
||||
run: |
|
||||
subwasm meta ${{ steps.srtool_build.outputs.wasm }}
|
||||
subwasm --json meta ${{ steps.srtool_build.outputs.wasm }} > ${{ matrix.chain }}-metadata.json
|
||||
subwasm --json meta ${{ steps.srtool_build.outputs.wasm }} > ${{ matrix.runtime }}-metadata.json
|
||||
|
||||
- name: Check the metadata diff
|
||||
shell: bash
|
||||
# the following subwasm call will error for chains that are not known and/or live, that includes shell for instance
|
||||
run: |
|
||||
subwasm diff ${{ steps.srtool_build.outputs.wasm }} --chain-b ${{ matrix.chain }} || \
|
||||
echo "Subwasm call failed, check the logs. This is likely because ${{ matrix.chain }} is not known by subwasm" | \
|
||||
tee ${{ matrix.chain }}-diff.txt
|
||||
subwasm diff ${{ steps.srtool_build.outputs.wasm }} --chain-b ${{ matrix.runtime }} || \
|
||||
echo "Subwasm call failed, check the logs. This is likely because ${{ matrix.runtime }} is not known by subwasm" | \
|
||||
tee ${{ matrix.runtime }}-diff.txt
|
||||
|
||||
- name: Archive Subwasm results
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ matrix.chain }}-runtime
|
||||
name: ${{ matrix.runtime }}-runtime
|
||||
path: |
|
||||
${{ matrix.chain }}-info.json
|
||||
${{ matrix.chain }}-compressed-info.json
|
||||
${{ matrix.chain }}-metadata.json
|
||||
${{ matrix.chain }}-diff.txt
|
||||
${{ matrix.runtime }}-info.json
|
||||
${{ matrix.runtime }}-compressed-info.json
|
||||
${{ matrix.runtime }}-metadata.json
|
||||
${{ matrix.runtime }}-diff.txt
|
||||
|
||||
Reference in New Issue
Block a user