Skip to content

Commit 308228d

Browse files
committed
switch to dtolnay/rust-toolchain
1 parent 62559d3 commit 308228d

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,9 @@ jobs:
88
runs-on: ubuntu-22.04
99
steps:
1010
- uses: actions/checkout@v4
11-
- uses: actions-rs/toolchain@v1
12-
with:
13-
profile: minimal
14-
toolchain: stable
15-
override: true
16-
- uses: actions-rs/cargo@v1
17-
with:
18-
command: build
19-
args: --release
11+
- uses: dtolnay/rust-toolchain@stable
12+
- run: cargo build --release
13+
2014
- name: Install LLVM
2115
run: |
2216
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
@@ -33,14 +27,7 @@ jobs:
3327
runs-on: ubuntu-22.04
3428
steps:
3529
- uses: actions/checkout@v4
36-
- uses: actions-rs/toolchain@v1
37-
with:
38-
profile: minimal
39-
toolchain: stable
40-
override: true
41-
- name: Add rustup component
42-
run: rustup component add rustfmt
43-
- uses: actions-rs/cargo@v1
30+
- uses: dtolnay/rust-toolchain@stable
4431
with:
45-
command: fmt
46-
args: --all -- --check
32+
components: rustfmt
33+
- run: cargo fmt --all -- --check

0 commit comments

Comments
 (0)