Skip to content

Commit d4eb648

Browse files
committed
ci: replace deprecated actions-rs/toolchain with dtolnay/rust-toolchain testing
1 parent 694e2de commit d4eb648

3 files changed

Lines changed: 11 additions & 19 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@ jobs:
66
coverage:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v4
1010
- name: Install toolchain
11-
uses: actions-rs/toolchain@v1
11+
uses: dtolnay/rust-toolchain@nightly
1212
with:
13-
profile: minimal
1413
target: x86_64-unknown-linux-gnu
15-
toolchain: nightly
16-
override: true
1714
components: rustfmt
1815
- name: Install grcov
1916
run: curl -L https://github.com/mozilla/grcov/releases/download/v0.6.1/grcov-linux-x86_64.tar.bz2 | tar jxf -

.github/workflows/doc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: pull the code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
- name: install dependencies
1717
run: pip install -r requirements.txt
1818
- name: build and deploy

.github/workflows/test.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,12 @@ jobs:
3030
toolchain: nightly
3131

3232
steps:
33-
- uses: actions/checkout@v2
33+
- uses: actions/checkout@v4
3434
- name: Install toolchain
35-
uses: actions-rs/toolchain@v1
35+
uses: dtolnay/rust-toolchain@master
3636
with:
37-
profile: minimal
38-
target: ${{ matrix.target }}
3937
toolchain: ${{ matrix.toolchain }}
40-
override: true
38+
targets: ${{ matrix.target }}
4139
- run: ${{ matrix.deps }}
4240
- name: Test sailfish
4341
run: |
@@ -55,7 +53,7 @@ jobs:
5553
test-miri:
5654
runs-on: ubuntu-latest
5755
steps:
58-
- uses: actions/checkout@v2
56+
- uses: actions/checkout@v4
5957
- name: Install toolchain
6058
run: |
6159
MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)
@@ -69,13 +67,10 @@ jobs:
6967
test-ios:
7068
runs-on: macos-latest
7169
steps:
72-
- uses: actions/checkout@v2
70+
- uses: actions/checkout@v4
7371
- name: Install toolchain
74-
uses: actions-rs/toolchain@v1
72+
uses: dtolnay/rust-toolchain@nightly
7573
with:
76-
profile: minimal
77-
toolchain: nightly
78-
target: aarch64-apple-ios
79-
override: true
74+
targets: aarch64-apple-ios
8075
- name: Build only
81-
run: cargo build --target=aarch64-apple-ios --workspace
76+
run: cargo build --target=aarch64-apple-ios --workspace

0 commit comments

Comments
 (0)