Files
pezframe-metadata/.github/workflows/rust.yml
T
Andrew Jones 1ac42f8153 Integrate scale-info for type generation (#2)
* scale-info infused metadata

* Include type registry in metadata

* Fix errors and fmt

* Fix errors

* Add scale-info std

* Use FormString trait

* Make TypeSpec fields public

* WIP v13

* Split v12 and v13 features

* Fmt

* Add v13 CI check

* Fix v12 errors

* Define RuntimeMetadata only once

* Add Extrinsic metadata

* Add errors to module metadata

* Add StorageMetadata to v13

* Allow both v12 and v13, add check
2021-01-06 14:06:14 +01:00

120 lines
4.6 KiB
YAML

name: Compilation and Testing Suite
on:
pull_request:
push:
branches:
- master
tags:
- v*
paths-ignore:
- 'README.md'
jobs:
check-test-build:
name: Check, test and build
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
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
## Check Stage
- name: Checking rust-stable
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --all --verbose
## Test Stage
- name: Testing rust-stable
uses: actions-rs/cargo@master
with:
command: test
toolchain: stable
args: --all --verbose
## Build Stage
- name: Building rust-stable
uses: actions-rs/cargo@master
if: github.ref == 'refs/heads/master'
with:
command: build
toolchain: stable
args: --all --verbose
check-wasm:
name: Check WASM
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
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: Add WASM Utilities
run: rustup target add wasm32-unknown-unknown --toolchain stable
## Check Stage
- name: Checking wasm32
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --manifest-path ./frame-metadata/Cargo.toml --target wasm32-unknown-unknown --no-default-features
check-features:
name: Check Features
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
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
## Check Stage
- name: Checking without any features
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --manifest-path ./frame-metadata/Cargo.toml --no-default-features
- name: Checking v12
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --manifest-path ./frame-metadata/Cargo.toml --no-default-features --features v12
- name: Checking v13
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --manifest-path ./frame-metadata/Cargo.toml --no-default-features --features v13
- name: Checking all versions
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --manifest-path ./frame-metadata/Cargo.toml --no-default-features --features v12,v13