Skip to content

Commit be6b800

Browse files
authored
Change actions-rs in CI for dtolnay/rust-toolchain@stable (#222)
* upstream update * migrate to dtolnay/rust-toolchain * clean up
1 parent 4a6500a commit be6b800

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.github/workflows/ci.yaml

+10-14
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: CI
22
on:
33
push:
4-
branches: [ main ]
4+
branches: [main]
55
pull_request:
6-
branches: [ '*' ]
6+
branches: ["*"]
77

8-
concurrency:
8+
concurrency:
99
group: ${{ github.head_ref || github.run_id }}
1010
cancel-in-progress: true
1111

@@ -17,15 +17,13 @@ jobs:
1717
- name: Checkout sources
1818
uses: actions/checkout@v3
1919

20-
- name: Install stable toolchain
21-
uses: actions-rs/toolchain@v1
20+
- name: Rustup toolchain install
21+
uses: dtolnay/rust-toolchain@stable
2222
with:
23-
profile: minimal
2423
toolchain: stable
25-
override: true
2624

2725
- name: Run cargo check
28-
uses: actions-rs/cargo@v1
26+
uses: dtolnay/rust-toolchain@stable
2927
with:
3028
command: check
3129
lint:
@@ -36,19 +34,17 @@ jobs:
3634
uses: actions/checkout@v3
3735

3836
- name: Install stable toolchain
39-
uses: actions-rs/toolchain@v1
37+
uses: dtolnay/rust-toolchain@stable
4038
with:
41-
profile: minimal
4239
toolchain: stable
43-
override: true
4440
components: rustfmt, clippy
4541

4642
- name: Run cargo fmt
47-
uses: actions-rs/cargo@v1
43+
uses: dtolnay/rust-toolchain@stable
4844
with:
4945
command: fmt
5046
args: --all -- --check
51-
47+
5248
- name: Run clippy
5349
run: make clippy
5450
test:
@@ -58,7 +54,7 @@ jobs:
5854
CARGO_TERM_COLOR: always
5955
steps:
6056
- uses: actions/checkout@v3
61-
- uses: actions-rs/toolchain@v1
57+
- uses: dtolnay/rust-toolchain@stable
6258
with:
6359
toolchain: stable
6460
components: clippy

0 commit comments

Comments
 (0)