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/workflows | |
| parent | merge(main): update branch with changes from main (diff) | |
| download | sl0ppij-fa6c76ea2db60d0941ab2d8e00f881a4b23688c1.tar.gz sl0ppij-fa6c76ea2db60d0941ab2d8e00f881a4b23688c1.tar.xz sl0ppij-fa6c76ea2db60d0941ab2d8e00f881a4b23688c1.zip | |
fix(ci): update to use the new build system
Diffstat (limited to '.github/workflows')
| -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 29aa721a..29bda75e 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 |
