diff options
author | Brooks J Rady <b.j.rady@gmail.com> | 2021-04-13 16:32:59 +0100 |
---|---|---|
committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-04-13 16:32:59 +0100 |
commit | fa6c76ea2db60d0941ab2d8e00f881a4b23688c1 (patch) | |
tree | 1daf4b89be4f3818c48523279f8c3ed428767639 /.github | |
parent | 0e73227fe2418c3a4945f493afbc64ab66dcb763 (diff) |
fix(ci): update to use the new build system
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/rust.yml | 56 |
1 files changed, 24 insertions, 32 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 29aa721ab..29bda75ea 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 |