From 3f8dd3dd35e784825155f1a096060fb208303269 Mon Sep 17 00:00:00 2001 From: Rasmus Kaj Date: Sat, 12 Oct 2024 00:02:43 +0200 Subject: [PATCH] Use actions-rust-lang. Possibly better github actions for compiling rust. --- .github/workflows/rust.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a5caec7a..39280769 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,11 +10,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable + - uses: actions-rust-lang/setup-rust-toolchain@v1 with: components: rustfmt - - run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json" - - run: cargo fmt --all -- --check + - name: Rustfmt Check + uses: actions-rust-lang/rustfmt@v1 # Run clippy on stable only clippy: @@ -22,10 +22,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable + - uses: actions-rust-lang/setup-rust-toolchain@v1 with: components: clippy - - run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json" - run: cargo clippy --all-features test-all: @@ -41,10 +40,9 @@ jobs: - nightly steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master + - uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: ${{ matrix.rust }} - - run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json" - run: cargo build - run: cargo test -q @@ -59,10 +57,9 @@ jobs: - 1.74.1 steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master + - uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: ${{ matrix.rust }} - - run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json" - run: cargo test -q test-macos: @@ -76,10 +73,9 @@ jobs: - 1.74.1 steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master + - uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: ${{ matrix.rust }} - - run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json" - run: cargo test -q test-old: @@ -94,9 +90,8 @@ jobs: - 1.61.0 steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master + - uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: ${{ matrix.rust }} - - run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json" - run: sed -i 's/"rsass-cli",/# \0/' Cargo.toml - run: cargo test --package rsass-macros -q