Skip to content

Commit

Permalink
Replace actions-rs/toolchain with direct rustup commands
Browse files Browse the repository at this point in the history
  • Loading branch information
tmccombs committed Apr 1, 2023
1 parent 27054bb commit 31efb69
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ jobs:
continue-on-error: ${{ matrix.rust == 'nightly' }}
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
components: rustfmt, clippy
- name: Install toolchain
run: |
rustup toolchain install ${{ matrix.rust }} --profile minimal --component clippy,rustfmt
rustup default ${{ matrix.rust }}
- name: Build
run: cargo build --verbose --examples --all-features
- name: Test
Expand All @@ -48,21 +46,17 @@ jobs:
- tokio-net,native-tls
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
- run: |
rustup toolchain install stable --profile minimal
rustup default stable
- name: Check
run: cargo check --verbose --no-default-features --features "${{ matrix.features }}"
test-examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
- run: |
rustup toolchain install stable --profile minimal
rustup default stable
- name: Test examples
run: python -m unittest examples.test_examples

0 comments on commit 31efb69

Please sign in to comment.