Skip to content

Commit

Permalink
Polkadot v1.13.0 (#200)
Browse files Browse the repository at this point in the history
* lift dependencies to workspace and bump to polkadot-v1.13.0

* [runtime] fix build

* [node] compiles

* [runtime] re-org imports

* taplo fmt

* cargo fmt

* use nightly in CI fmt job

* bump srtool in CI to fix build

* remove unsupported profile production from srtool build

* [node] fix: use camelCase in chain spec fields

* switch branch for integritee pallets

* [runtime] fix benchmark build
  • Loading branch information
clangenb authored Jun 27, 2024
1 parent 097f97b commit 550fe53
Show file tree
Hide file tree
Showing 23 changed files with 4,558 additions and 3,408 deletions.
69 changes: 31 additions & 38 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
rust: [stable]
binary: [release]
os: [ ubuntu-20.04 ]
rust: [ stable ]
binary: [ release ]
env:
RUST_BACKTRACE: full
RUSTV: ${{ matrix.rust }}
Expand Down Expand Up @@ -110,9 +110,9 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
rust: [stable]
binary: [release]
os: [ ubuntu-20.04 ]
rust: [ stable ]
binary: [ release ]
env:
RUST_BACKTRACE: full
RUSTV: ${{ matrix.rust }}
Expand Down Expand Up @@ -161,31 +161,24 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [stable]
rust-target: [x86_64-unknown-linux-gnu]
# check: [fmt --all -- --check, clippy -- -D warnings]
check: [fmt --all -- --check] # skip clippy for now
os: [ ubuntu-latest ]
rust: [ stable ]
rust-target: [ x86_64-unknown-linux-gnu ]
# check: [fmt --all -- --check, clippy -- -D warnings]
check: [ +nightly fmt --all ] # skip clippy for now
env:
RUST_BACKTRACE: full
RUSTV: ${{ matrix.rust }}
TARGET: ${{ matrix.rust-target }}
steps:
- uses: actions/checkout@v3

# With rustup's nice new toml format, we just need to run rustup show to install the toolchain
# https://github.com/actions-rs/toolchain/issues/126#issuecomment-782989659
- name: Setup Rust toolchain
run: rustup show

- name: Install dependencies
run: |
sudo apt update && \
sudo apt install --assume-yes protobuf-compiler
- uses: Swatinem/rust-cache@v2
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
key: ${{ matrix.rust-target }}-${{ matrix.check }}
profile: minimal
toolchain: nightly
components: rustfmt

- name: ${{ matrix.check }}
run: cargo ${{ matrix.check }}
Expand Down Expand Up @@ -230,7 +223,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
runtime: ["integritee-node"]
runtime: [ "integritee-node" ]
steps:
- uses: actions/checkout@v3

Expand All @@ -245,10 +238,10 @@ jobs:
- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.7.0
uses: chevdor/srtool-actions@v0.9.2
with:
image: paritytech/srtool
chain: ${{ matrix.runtime }}
tag: 1.66.1
runtime_dir: runtime

- name: Summary
Expand Down Expand Up @@ -279,12 +272,12 @@ jobs:
subwasm meta ${{ steps.srtool_build.outputs.wasm }}
subwasm --json meta ${{ steps.srtool_build.outputs.wasm }} > ${{ matrix.runtime }}-metadata.json
# This is unsupported it wants to diff the metadata with a running chain. i.e. wss://kusama-<matrix.chain>-rpc.parity.io
# - name: Check the metadata diff
# shell: bash
# run: |
# subwasm diff ${{ steps.srtool_build.outputs.wasm }} --chain-b ${{ matrix.chain }} > ${{ matrix.chain }}-diff.txt
# cat ${{ matrix.chain }}-diff.txt
# This is unsupported it wants to diff the metadata with a running chain. i.e. wss://kusama-<matrix.chain>-rpc.parity.io
# - name: Check the metadata diff
# shell: bash
# run: |
# 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@v3
Expand All @@ -295,7 +288,7 @@ jobs:
${{ matrix.runtime }}-info.json
${{ matrix.runtime }}-compressed-info.json
${{ matrix.runtime }}-metadata.json
# ${{ matrix.runtime }}-diff.txt
# ${{ matrix.runtime }}-diff.txt


- name: Upload ${{ matrix.runtime }} runtime
Expand Down Expand Up @@ -323,8 +316,8 @@ jobs:
strategy:
fail-fast: false
matrix:
chain: [shell]
config: [kusama]
chain: [ shell ]
config: [ kusama ]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -370,7 +363,7 @@ jobs:
name: Draft Release
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: [create_artifacts, build_binaries, check]
needs: [ create_artifacts, build_binaries, check ]
outputs:
release_url: ${{ steps.create-release.outputs.html_url }}
asset_upload_url: ${{ steps.create-release.outputs.upload_url }}
Expand Down Expand Up @@ -417,10 +410,10 @@ jobs:
publish-runtimes:
name: Publish Runtimes
runs-on: ubuntu-latest
needs: ["release"]
needs: [ "release" ]
strategy:
matrix:
runtime: ["integritee-node"]
runtime: [ "integritee-node" ]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
Expand Down
Loading

0 comments on commit 550fe53

Please sign in to comment.