diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0777368574..ad1f3d4d54 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,6 +29,12 @@ jobs: override: true components: rustfmt, clippy + - name: Check formatting + uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + - name: Build all binaries uses: actions-rs/cargo@v1 with: @@ -48,12 +54,6 @@ jobs: command: test args: --workspace --all-features -- --ignored - - name: Check formatting - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - uses: actions-rs/clippy-check@v1 name: Clippy checks with: @@ -66,6 +66,8 @@ jobs: command: clippy args: --workspace -- -D warnings + # COCONUT stuff + - name: Build all binaries with coconut enabled uses: actions-rs/cargo@v1 with: @@ -82,4 +84,4 @@ jobs: uses: actions-rs/cargo@v1 with: command: clippy - args: --features=coconut -- -D warnings + args: --all-targets --features=coconut -- -D warnings