Skip to content

Commit 31efb69

Browse files
committed
Replace actions-rs/toolchain with direct rustup commands
1 parent 27054bb commit 31efb69

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

.github/workflows/ci.yml

+10-16
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@ jobs:
1616
continue-on-error: ${{ matrix.rust == 'nightly' }}
1717
steps:
1818
- uses: actions/checkout@v3
19-
- uses: actions-rs/toolchain@v1
20-
with:
21-
toolchain: ${{ matrix.rust }}
22-
override: true
23-
profile: minimal
24-
components: rustfmt, clippy
19+
- name: Install toolchain
20+
run: |
21+
rustup toolchain install ${{ matrix.rust }} --profile minimal --component clippy,rustfmt
22+
rustup default ${{ matrix.rust }}
2523
- name: Build
2624
run: cargo build --verbose --examples --all-features
2725
- name: Test
@@ -48,21 +46,17 @@ jobs:
4846
- tokio-net,native-tls
4947
steps:
5048
- uses: actions/checkout@v3
51-
- uses: actions-rs/toolchain@v1
52-
with:
53-
toolchain: stable
54-
override: true
55-
profile: minimal
49+
- run: |
50+
rustup toolchain install stable --profile minimal
51+
rustup default stable
5652
- name: Check
5753
run: cargo check --verbose --no-default-features --features "${{ matrix.features }}"
5854
test-examples:
5955
runs-on: ubuntu-latest
6056
steps:
6157
- uses: actions/checkout@v3
62-
- uses: actions-rs/toolchain@v1
63-
with:
64-
toolchain: stable
65-
override: true
66-
profile: minimal
58+
- run: |
59+
rustup toolchain install stable --profile minimal
60+
rustup default stable
6761
- name: Test examples
6862
run: python -m unittest examples.test_examples

0 commit comments

Comments
 (0)