Skip to content

Commit 94f9d76

Browse files
authored
Merge pull request #38 from bgilbert/deprecations
Fix GitHub Actions deprecation warnings; switch away from unmaintained `actions-rs/toolchain`
2 parents 88c0bef + 5db9039 commit 94f9d76

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.github/workflows/rust.yml

+8-12
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout repository
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v3
2525
- name: Install toolchain
26-
uses: actions-rs/toolchain@v1
26+
uses: dtolnay/rust-toolchain@v1
2727
with:
2828
toolchain: stable
29-
default: true
3029
- name: cargo build
3130
run: cargo build
3231
- name: cargo test
@@ -36,7 +35,7 @@ jobs:
3635
runs-on: ubuntu-latest
3736
steps:
3837
- name: Checkout repository
39-
uses: actions/checkout@v2
38+
uses: actions/checkout@v3
4039
- name: Detect crate MSRV
4140
shell: bash
4241
run: |
@@ -45,10 +44,9 @@ jobs:
4544
echo "Crate MSRV: $msrv"
4645
echo "MSRV=$msrv" >> $GITHUB_ENV
4746
- name: Install toolchain
48-
uses: actions-rs/toolchain@v1
47+
uses: dtolnay/rust-toolchain@v1
4948
with:
5049
toolchain: ${{ env.MSRV }}
51-
default: true
5250
- name: cargo build
5351
run: cargo build
5452
- name: cargo test
@@ -58,12 +56,11 @@ jobs:
5856
runs-on: ubuntu-latest
5957
steps:
6058
- name: Checkout repository
61-
uses: actions/checkout@v2
59+
uses: actions/checkout@v3
6260
- name: Install toolchain
63-
uses: actions-rs/toolchain@v1
61+
uses: dtolnay/rust-toolchain@v1
6462
with:
6563
toolchain: ${{ env['ACTIONS_LINTS_TOOLCHAIN'] }}
66-
default: true
6764
components: rustfmt, clippy
6865
- name: cargo fmt (check)
6966
run: cargo fmt -- --check -l
@@ -82,12 +79,11 @@ jobs:
8279
- nightly
8380
steps:
8481
- name: Checkout repository
85-
uses: actions/checkout@v2
82+
uses: actions/checkout@v3
8683
- name: Install toolchain
87-
uses: actions-rs/toolchain@v1
84+
uses: dtolnay/rust-toolchain@v1
8885
with:
8986
toolchain: ${{ matrix.channel }}
90-
default: true
9187
- name: cargo build
9288
run: cargo build
9389
- name: cargo test

0 commit comments

Comments
 (0)