From 81381fb387ecaefe320ad2a6aaafa133099444e0 Mon Sep 17 00:00:00 2001 From: OlivierHecart Date: Wed, 18 Oct 2023 11:47:21 +0200 Subject: [PATCH] Change rust-toolchain to rust-toolchain.toml file --- .github/workflows/ci.yml | 6 +++--- .github/workflows/release.yml | 17 +++++++---------- rust-toolchain | 1 - rust-toolchain.toml | 2 ++ 4 files changed, 12 insertions(+), 14 deletions(-) delete mode 100644 rust-toolchain create mode 100644 rust-toolchain.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c543434..9696932 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,9 +45,9 @@ jobs: run: choco install llvm -y - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - components: rustfmt, clippy + run: | + rustup show + rustup component add rustfmt clippy - name: Code format check uses: actions-rs/cargo@v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ebe3a38..0637c81 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,9 +27,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - components: rustfmt, clippy + run: | + rustup show + rustup component add rustfmt clippy - name: Code format check uses: actions-rs/cargo@v1 with: @@ -167,12 +167,9 @@ jobs: if: matrix.job.os == 'windows-2019' - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: ${{ matrix.job.target }} - override: true - profile: minimal + run: | + rustup show + rustup target add ${{ matrix.job.target }} - name: Build uses: actions-rs/cargo@v1 @@ -276,7 +273,7 @@ jobs: ssh-add -D - uses: actions/checkout@v2 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + run: rustup show - name: Publish to crates.io shell: bash run: | diff --git a/rust-toolchain b/rust-toolchain deleted file mode 100644 index 0834888..0000000 --- a/rust-toolchain +++ /dev/null @@ -1 +0,0 @@ -1.72.0 diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..743f7cd --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "1.72.0"