From 146c511232269663c795ad14897cc3cea1c26253 Mon Sep 17 00:00:00 2001 From: Dave Henke Date: Wed, 8 Feb 2023 20:04:46 -0600 Subject: [PATCH] Override rust version for builds --- .github/workflows/ci.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11cb26b..3f8a839 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,19 +13,30 @@ jobs: include: - cargo_target: "x86_64-unknown-linux-gnu" steps: + - uses: actions/checkout@v2 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: 1.67.0 + override: true + components: rustfmt, clippy - name: Clone repo uses: actions/checkout@master - - name: Add targets - run: rustup target add wasm32-unknown-unknown - name: Build + uses: actions-rs/cargo@v1 + with: + command: build --verbose env: CARGO_BUILD_TARGET: ${{ matrix.cargo_target }} - run: cargo build --verbose - name: Clippy + uses: actions-rs/cargo@v1 env: CARGO_BUILD_TARGET: ${{ matrix.cargo_target }} - run: RUSTFLAGS="-Dwarnings" cargo clippy + with: + command: check --verbose - name: Fmt + uses: actions-rs/cargo@v1 env: CARGO_BUILD_TARGET: ${{ matrix.cargo_target }} - run: cargo fmt -- --check + with: + command: fmt -- --check