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:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build & test
|
name: Build & Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Add WASM target
|
- name: Add WASM target
|
||||||
run: rustup target add wasm32-wasi
|
run: rustup target add wasm32-wasi
|
||||||
- name: Build
|
- name: Install cargo-make
|
||||||
run: ./build-all.sh --verbose
|
run: cargo install --force cargo-make
|
||||||
- name: Run tests
|
- name: Build & Test
|
||||||
run: cargo test -j 1 --verbose
|
run: cargo make
|
||||||
fmt:
|
|
||||||
name: Rustfmt
|
format:
|
||||||
|
name: Check Formatting
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- name: Add WASM target
|
||||||
with:
|
run: rustup target add wasm32-wasi
|
||||||
profile: minimal
|
- name: Install cargo-make
|
||||||
toolchain: stable
|
run: cargo install --force cargo-make
|
||||||
override: true
|
- name: Check Format
|
||||||
- run: rustup component add rustfmt
|
run: cargo make check-format
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: fmt
|
|
||||||
args: --all -- --check
|
|
||||||
clippy:
|
clippy:
|
||||||
name: Clippy
|
name: Check For Clippy Lints
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- name: Add WASM target
|
||||||
with:
|
run: rustup target add wasm32-wasi
|
||||||
toolchain: stable
|
- name: Install cargo-make
|
||||||
components: clippy
|
run: cargo install --force cargo-make
|
||||||
- name: Add WASM target
|
- name: Check Format
|
||||||
run: rustup target add wasm32-wasi
|
run: cargo make clippy -D clippy::all
|
||||||
- name: Build
|
|
||||||
run: ./build-all.sh --verbose
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: clippy
|
|
||||||
args: --all-features --all-targets
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue