From 3fb39769d4fa6d4c2684e8b1213601d8afc4c3e5 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Tue, 19 Dec 2023 21:02:51 +0000 Subject: [PATCH] ci: move away from the unsupported rust actions --- .github/workflows/ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bc7a29..2163ad4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,11 +42,13 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Run cargo format - uses: actions-rs/cargo@v1 + - name: Set up rust + uses: dtolnay/rust-toolchain@stable with: - command: fmt - args: --all -- --check + components: rustfmt + + - name: Lint + run: cargo fmt --check test: name: Build and test @@ -55,10 +57,8 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Install rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable + - name: Set up rust + uses: dtolnay/rust-toolchain@stable - name: Install dependencies run: sudo apt update && sudo apt install -y luajit build-essential