Skip to content

Commit

Permalink
run cmds in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszaaa committed Oct 19, 2022
1 parent 57cb735 commit bafa50f
Showing 1 changed file with 42 additions and 18 deletions.
60 changes: 42 additions & 18 deletions .github/workflows/mangata-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,64 @@ on:
push:
branches: [ mangata-dev ]

name: build
name: CI

env:
TOOLCHAIN: nightly-2022-05-11


jobs:
check:
name: Rust project
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install newset Cargo
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-05-11
toolchain: ${{ env.TOOLCHAIN }}
default: true
- name: Install nightly-2022-05-11 with wasm
components: rustfmt
target: wasm32-unknown-unknown
- name: Check formatting
uses: actions-rs/cargo@v1
with:
toolchain: ${{ env.TOOLCHAIN }}
command: fmt
args: --all -- --check

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install newset Cargo
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-05-11
toolchain: ${{ env.TOOLCHAIN }}
default: true
components: rustfmt
target: wasm32-unknown-unknown
- name: Check Cargo version
run: |
cargo --version
- name: Check formatting
uses: actions-rs/cargo@v1
with:
toolchain: nightly-2022-05-11
command: fmt --all -- --check
- name: Check build
uses: actions-rs/cargo@v1
toolchain: ${{ env.TOOLCHAIN }}
command: build
args: --release

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install newset Cargo
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-05-11
command: check
- name: UT
toolchain: ${{ env.TOOLCHAIN }}
default: true
components: rustfmt
target: wasm32-unknown-unknown
- name: Check formatting
uses: actions-rs/cargo@v1
with:
toolchain: nightly-2022-05-11
toolchain: ${{ env.TOOLCHAIN }}
command: test
args: --release -j2 sc-block-builder-ver -p sc-basic-authorship-ver -p frame-executive -p frame-system -p sc-consensus-slots -p sc-consensus-aura
args: -p sc-block-builder-ver -p sc-basic-authorship-ver -p frame-executive -p frame-system -p sc-consensus-slots -p sc-consensus-aura

0 comments on commit bafa50f

Please sign in to comment.