Skip to content

Commit

Permalink
Split to multiple jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffa5 committed Sep 15, 2021
1 parent e8a6a8c commit 4d0a289
Showing 1 changed file with 49 additions and 1 deletion.
50 changes: 49 additions & 1 deletion .github/workflows/ci.yaml
Expand Up @@ -3,7 +3,7 @@ on: push
name: Continuous integration

jobs:
ci:
format-clippy-doc:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -45,6 +45,30 @@ jobs:
command: doc
args: --workspace --all-features

build-test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
# - 1.31.0 # MSRV

steps:
- uses: actions/checkout@v2

- name: Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy

- name: Cache
uses: Swatinem/rust-cache@v1

- name: Build
uses: actions-rs/cargo@v1
with:
Expand All @@ -57,6 +81,30 @@ jobs:
command: test
args: --workspace

wasm-build-test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
# - 1.31.0 # MSRV

steps:
- uses: actions/checkout@v2

- name: Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy

- name: Cache
uses: Swatinem/rust-cache@v1

- name: Install wasm-pack binary crate
uses: actions-rs/install@v0.1
with:
Expand Down

0 comments on commit 4d0a289

Please sign in to comment.