Skip to content

Commit 3f8dd3d

Browse files
committed
Use actions-rust-lang.
Possibly better github actions for compiling rust.
1 parent e8492fd commit 3f8dd3d

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/rust.yml

+8-13
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,21 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- uses: dtolnay/rust-toolchain@stable
13+
- uses: actions-rust-lang/setup-rust-toolchain@v1
1414
with:
1515
components: rustfmt
16-
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
17-
- run: cargo fmt --all -- --check
16+
- name: Rustfmt Check
17+
uses: actions-rust-lang/rustfmt@v1
1818

1919
# Run clippy on stable only
2020
clippy:
2121
name: Clippy
2222
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@v4
25-
- uses: dtolnay/rust-toolchain@stable
25+
- uses: actions-rust-lang/setup-rust-toolchain@v1
2626
with:
2727
components: clippy
28-
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
2928
- run: cargo clippy --all-features
3029

3130
test-all:
@@ -41,10 +40,9 @@ jobs:
4140
- nightly
4241
steps:
4342
- uses: actions/checkout@v4
44-
- uses: dtolnay/rust-toolchain@master
43+
- uses: actions-rust-lang/setup-rust-toolchain@v1
4544
with:
4645
toolchain: ${{ matrix.rust }}
47-
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
4846
- run: cargo build
4947
- run: cargo test -q
5048

@@ -59,10 +57,9 @@ jobs:
5957
- 1.74.1
6058
steps:
6159
- uses: actions/checkout@v4
62-
- uses: dtolnay/rust-toolchain@master
60+
- uses: actions-rust-lang/setup-rust-toolchain@v1
6361
with:
6462
toolchain: ${{ matrix.rust }}
65-
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
6663
- run: cargo test -q
6764

6865
test-macos:
@@ -76,10 +73,9 @@ jobs:
7673
- 1.74.1
7774
steps:
7875
- uses: actions/checkout@v4
79-
- uses: dtolnay/rust-toolchain@master
76+
- uses: actions-rust-lang/setup-rust-toolchain@v1
8077
with:
8178
toolchain: ${{ matrix.rust }}
82-
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
8379
- run: cargo test -q
8480

8581
test-old:
@@ -94,9 +90,8 @@ jobs:
9490
- 1.61.0
9591
steps:
9692
- uses: actions/checkout@v4
97-
- uses: dtolnay/rust-toolchain@master
93+
- uses: actions-rust-lang/setup-rust-toolchain@v1
9894
with:
9995
toolchain: ${{ matrix.rust }}
100-
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
10196
- run: sed -i 's/"rsass-cli",/# \0/' Cargo.toml
10297
- run: cargo test --package rsass-macros -q

0 commit comments

Comments
 (0)