Skip to content

Commit 62e45e3

Browse files
committed
Replace obsolete actions-rs toolchain
1 parent 6f4dde2 commit 62e45e3

File tree

2 files changed

+13
-23
lines changed

2 files changed

+13
-23
lines changed

.github/workflows/full-ci.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,8 @@ jobs:
136136
steps:
137137
- uses: actions/checkout@v4
138138
- name: "Install nightly Rust (minimal-deps only)"
139-
uses: actions-rs/toolchain@v1
140-
with:
141-
profile: minimal
142-
toolchain: nightly
143-
override: false # use selected toolchain for remainder of this step
144-
components: cargo
145139
if: ${{ matrix.rust.special == 'minimal-deps' }}
140+
run: rustup toolchain install nightly --profile minimal --component cargo
146141
- name: "Install minimal dependency versions from Cargo"
147142
run: cargo +nightly update -Z minimal-versions
148143
if: ${{ matrix.rust.special == 'minimal-deps' }}

.github/workflows/release-version.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,10 @@ jobs:
7474
needs: validation
7575
steps:
7676
- uses: actions/checkout@v4
77-
- uses: actions-rs/toolchain@v1
78-
with:
79-
profile: minimal
80-
toolchain: stable
81-
override: true
77+
- name: "Install Rust toolchain"
78+
run: |
79+
rustup toolchain install stable --profile minimal
80+
rustup default stable
8281
- name: "Compile tests"
8382
run: cargo test --workspace --features ${GDRUST_FEATURES} --no-run
8483
- name: "Test"
@@ -89,12 +88,10 @@ jobs:
8988
needs: validation
9089
steps:
9190
- uses: actions/checkout@v4
92-
- uses: actions-rs/toolchain@v1
93-
with:
94-
profile: minimal
95-
toolchain: stable
96-
override: true
97-
components: clippy
91+
- name: "Install Rust toolchain"
92+
run: |
93+
rustup toolchain install stable --profile minimal --component clippy
94+
rustup default stable
9895
- name: "Check clippy"
9996
run: cargo clippy --workspace --features ${GDRUST_FEATURES} -- -D clippy::style -D clippy::complexity -D clippy::perf -D clippy::dbg_macro -D clippy::todo -D clippy::unimplemented
10097

@@ -103,12 +100,10 @@ jobs:
103100
needs: validation
104101
steps:
105102
- uses: actions/checkout@v4
106-
- uses: actions-rs/toolchain@v1
107-
with:
108-
profile: minimal
109-
toolchain: stable
110-
override: true
111-
components: rustfmt
103+
- name: "Install Rust toolchain"
104+
run: |
105+
rustup toolchain install stable --profile minimal --component rustfmt
106+
rustup default stable
112107
- name: "Check rustfmt"
113108
run: cargo fmt --all -- --check
114109

0 commit comments

Comments
 (0)