fix(ci): update to use the new build system
This commit is contained in:
parent
0e73227fe2
commit
fa6c76ea2d
1 changed files with 24 additions and 32 deletions
56
.github/workflows/rust.yml
vendored
56
.github/workflows/rust.yml
vendored
|
|
@ -11,48 +11,40 @@ env:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
name: Build & test
|
||||
name: Build & Test
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Add WASM target
|
||||
run: rustup target add wasm32-wasi
|
||||
- name: Build
|
||||
run: ./build-all.sh --verbose
|
||||
- name: Run tests
|
||||
run: cargo test -j 1 --verbose
|
||||
fmt:
|
||||
name: Rustfmt
|
||||
- name: Install cargo-make
|
||||
run: cargo install --force cargo-make
|
||||
- name: Build & Test
|
||||
run: cargo make
|
||||
|
||||
format:
|
||||
name: Check Formatting
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
- run: rustup component add rustfmt
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
- uses: actions/checkout@v2
|
||||
- name: Add WASM target
|
||||
run: rustup target add wasm32-wasi
|
||||
- name: Install cargo-make
|
||||
run: cargo install --force cargo-make
|
||||
- name: Check Format
|
||||
run: cargo make check-format
|
||||
|
||||
clippy:
|
||||
name: Clippy
|
||||
name: Check For Clippy Lints
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
components: clippy
|
||||
- name: Add WASM target
|
||||
run: rustup target add wasm32-wasi
|
||||
- name: Build
|
||||
run: ./build-all.sh --verbose
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
args: --all-features --all-targets
|
||||
- uses: actions/checkout@v2
|
||||
- name: Add WASM target
|
||||
run: rustup target add wasm32-wasi
|
||||
- name: Install cargo-make
|
||||
run: cargo install --force cargo-make
|
||||
- name: Check Format
|
||||
run: cargo make clippy -D clippy::all
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue