Skip to content

Commit

Permalink
Use actions-rust-lang.
Browse files Browse the repository at this point in the history
Possibly better github actions for compiling rust.
  • Loading branch information
kaj committed Oct 11, 2024
1 parent e8492fd commit 3f8dd3d
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,21 @@ 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:
name: Clippy
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:
Expand 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

Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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

0 comments on commit 3f8dd3d

Please sign in to comment.