mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 02:21:14 +00:00
f9c24ef0db
b2099c5c Bump Substrate to `b094edaf` (#958) 3f037094 Bump endowment amounts on Rialto and Millau (#957) b21fd07c Bump Substrate WASM builder (#947) 30ccd07c Bump Substrate to `ec180313` (#955) a7422ab1 Upgrade to GitHub-native Dependabot (#945) ed20ef34 Move pallet-bridge-dispatch types to primitives (#948) 2070c4d6 Endow accounts and add `bridgeIds` to chainspec. (#951) f43c9243 Fix account derivation in CLI (#952) 9ac07e73 Add backbone configuration of cargo-spellcheck (#924) 2761c3fe Message dispatch support multiple instances (#942) 801c99f3 Add Wococo<>Rococo Header Relayer (#925) 21f49051 Remove Westend<>Rococo header sync (#940) 06235f16 do not panic if pallet is not yet initialized (#937) a13ee0bc Bump Substrate (#939) f8680cbf jsonrpsee alpha6 (#938) 6163bcbf reonnect to failed client in on-demand relay background task (#936) 14e82bea Do not spawn additional task for on-demand relays (#933) b1557b88 Relay at least one header for every source chain session (#923) 9420649c Remove deprecated Runtime Header APIs (#932) 9627011e Update README.md (#931) 7b736b9c Truncate output in logs. (#930) faad06e3 Make sure that relayers have dates in logs. (#927) 07734535 Update dump-logs script. (#928) c2d56b2e Add pruning to bechmarks & update weights. (#918) a30c51dc Add properties to Chain Spec (#917) d691c73e Fix issue with on-demand headers relay not starting (#921) 8ee55c1e Fix image publishing. (#922) f51fb59d Prefix in relay loops logs (#920) git-subtree-dir: bridges git-subtree-split: b2099c5c0baf569e2ec7228507b6e4f3972143cc
176 lines
6.5 KiB
YAML
176 lines
6.5 KiB
YAML
name: Compilation and Testing Suite
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
tags:
|
|
- v*
|
|
paths-ignore:
|
|
- '**.md'
|
|
- diagrams/*
|
|
- docs/*
|
|
schedule: # Weekly build
|
|
- cron: '0 0 * * 0'
|
|
jobs:
|
|
|
|
## Check Stage
|
|
check-test:
|
|
name: Check and test
|
|
strategy:
|
|
matrix:
|
|
toolchain:
|
|
- stable
|
|
#- beta
|
|
- nightly-2021-04-10
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
RUST_BACKTRACE: full
|
|
NIGHTLY: nightly-2021-04-10 #if necessary, specify the version, nightly-2020-10-04, etc.
|
|
steps:
|
|
|
|
- name: Cancel Previous Runs
|
|
uses: styfle/cancel-workflow-action@0.4.1
|
|
with:
|
|
access_token: ${{ github.token }}
|
|
|
|
- name: Checkout sources & submodules
|
|
uses: actions/checkout@master
|
|
with:
|
|
fetch-depth: 5
|
|
submodules: recursive
|
|
|
|
- name: Install Toolchain
|
|
run: rustup toolchain add $NIGHTLY
|
|
|
|
- name: Add WASM Utilities
|
|
run: rustup target add wasm32-unknown-unknown --toolchain $NIGHTLY
|
|
|
|
- name: Checking rust-${{ matrix.toolchain }}
|
|
uses: actions-rs/cargo@master
|
|
with:
|
|
command: check
|
|
toolchain: ${{ matrix.toolchain }}
|
|
args: --all --verbose
|
|
|
|
## Test Stage
|
|
- name: Testing rust-${{ matrix.toolchain }}
|
|
uses: actions-rs/cargo@master
|
|
if: matrix.toolchain == 'stable'
|
|
with:
|
|
command: test
|
|
toolchain: ${{ matrix.toolchain }}
|
|
args: --all --verbose
|
|
|
|
## Check Node Benchmarks
|
|
- name: Check Rialto benchmarks runtime ${{ matrix.platform }} rust-${{ matrix.toolchain }}
|
|
uses: actions-rs/cargo@master
|
|
with:
|
|
command: check
|
|
toolchain: ${{ matrix.toolchain }}
|
|
args: -p rialto-runtime --features runtime-benchmarks --verbose
|
|
|
|
- name: Check Millau benchmarks runtime ${{ matrix.platform }} rust-${{ matrix.toolchain }}
|
|
uses: actions-rs/cargo@master
|
|
with:
|
|
command: check
|
|
toolchain: ${{ matrix.toolchain }}
|
|
args: -p millau-runtime --features runtime-benchmarks --verbose
|
|
|
|
## Build Stage
|
|
build:
|
|
name: Build
|
|
strategy:
|
|
matrix:
|
|
toolchain:
|
|
- stable
|
|
#- beta
|
|
- nightly-2021-04-10
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
RUST_BACKTRACE: full
|
|
NIGHTLY: nightly-2021-04-10 #if necessary, specify the version, nightly-2020-10-04, etc.
|
|
steps:
|
|
|
|
- name: Cancel Previous Runs
|
|
uses: styfle/cancel-workflow-action@0.4.1
|
|
with:
|
|
access_token: ${{ github.token }}
|
|
|
|
- name: Checkout sources & submodules
|
|
uses: actions/checkout@master
|
|
with:
|
|
fetch-depth: 5
|
|
submodules: recursive
|
|
|
|
- name: Install Toolchain
|
|
run: rustup toolchain add $NIGHTLY
|
|
|
|
- name: Add WASM Utilities
|
|
run: rustup target add wasm32-unknown-unknown --toolchain $NIGHTLY
|
|
|
|
- name: Building rust-${{ matrix.toolchain }}
|
|
uses: actions-rs/cargo@master
|
|
if: github.ref == 'refs/heads/master'
|
|
with:
|
|
command: build
|
|
toolchain: ${{ matrix.toolchain }}
|
|
args: --all --verbose
|
|
|
|
- name: Prepare artifacts
|
|
if: github.ref == 'refs/heads/master'
|
|
run: |
|
|
mkdir -p ./artifacts;
|
|
mv -v target/debug/rialto-bridge-node ./artifacts/;
|
|
mv -v target/debug/millau-bridge-node ./artifacts/;
|
|
mv -v target/debug/ethereum-poa-relay ./artifacts/;
|
|
mv -v target/debug/substrate-relay ./artifacts/;
|
|
shell: bash
|
|
|
|
- name: Upload artifacts
|
|
if: github.ref == 'refs/heads/master'
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: ${{ matrix.toolchain }}.zip
|
|
path: artifacts/
|
|
|
|
## Linting Stage
|
|
clippy:
|
|
name: Clippy
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
RUST_BACKTRACE: full
|
|
NIGHTLY: nightly-2021-04-10 #if necessary, specify the version, nightly-2020-10-04, etc.
|
|
steps:
|
|
|
|
- name: Cancel Previous Runs
|
|
uses: styfle/cancel-workflow-action@0.4.1
|
|
with:
|
|
access_token: ${{ github.token }}
|
|
|
|
- name: Checkout sources & submodules
|
|
uses: actions/checkout@master
|
|
with:
|
|
fetch-depth: 5
|
|
submodules: recursive
|
|
|
|
- name: Install Toolchain
|
|
run: rustup toolchain add $NIGHTLY
|
|
|
|
- name: Add WASM Utilities
|
|
run: rustup target add wasm32-unknown-unknown --toolchain $NIGHTLY
|
|
|
|
- name: Add clippy
|
|
run: rustup component add clippy --toolchain $NIGHTLY
|
|
|
|
- name: Rust Cache
|
|
uses: Swatinem/rust-cache@v1.2.0
|
|
|
|
- name: Clippy
|
|
uses: actions-rs/cargo@master
|
|
with:
|
|
command: clippy
|
|
toolchain: nightly-2021-04-10 #if necessary, specify the version, nightly-2020-10-04, etc.
|
|
args: --all-targets -- -D warnings
|