Skip to content

Commit 4b17bb2

Browse files
committed
Change rust-toolchain to rust-toolchain.toml file
1 parent 1e9c17e commit 4b17bb2

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
- uses: actions/checkout@v2
3636

3737
- name: Install Rust toolchain
38-
uses: actions-rs/toolchain@v1
39-
with:
40-
components: rustfmt, clippy
38+
run: |
39+
rustup show
40+
rustup component add rustfmt clippy
4141
4242
- name: Code format check
4343
uses: actions-rs/cargo@v1

.github/workflows/release.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
steps:
3030
- uses: actions/checkout@v2
3131
- name: Install Rust toolchain
32-
uses: actions-rs/toolchain@v1
33-
with:
34-
components: rustfmt, clippy
32+
run: |
33+
rustup show
34+
rustup component add rustfmt clippy
3535
- name: Code format check
3636
uses: actions-rs/cargo@v1
3737
with:
@@ -167,12 +167,9 @@ jobs:
167167
esac
168168
169169
- name: Install Rust toolchain
170-
uses: actions-rs/toolchain@v1
171-
with:
172-
toolchain: stable
173-
target: ${{ matrix.job.target }}
174-
override: true
175-
profile: minimal
170+
run: |
171+
rustup show
172+
rustup target add ${{ matrix.job.target }}
176173
177174
- name: zenoh-plugin-mqtt > Build
178175
uses: actions-rs/cargo@v1
@@ -346,7 +343,7 @@ jobs:
346343
ssh-add -D
347344
- uses: actions/checkout@v2
348345
- name: Install Rust toolchain
349-
uses: actions-rs/toolchain@v1
346+
run: rustup show
350347
- name: Publish to crates.io
351348
shell: bash
352349
run: |

rust-toolchain

Lines changed: 0 additions & 1 deletion
This file was deleted.

rust-toolchain.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[toolchain]
2+
channel = "1.72.0"

0 commit comments

Comments
 (0)