This is an automated email from the ASF dual-hosted git repository. martin-g pushed a commit to branch get-rid-of-dtolnal-toolchain in repository https://gitbox.apache.org/repos/asf/avro-rs.git
commit 0c83da918fe8ee5be948627680d9c7d160b9e52c Author: Martin Tzvetanov Grigorov <[email protected]> AuthorDate: Fri Jul 17 10:18:55 2026 +0300 chore(ci): Directly use rustup to install toolchains --- .github/workflows/test-lang-rust-ci.yml | 27 +++++++++++++++------------ .github/workflows/test-lang-rust-clippy.yml | 10 ++++++---- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test-lang-rust-ci.yml b/.github/workflows/test-lang-rust-ci.yml index 0c6be4d..c7d6ca7 100644 --- a/.github/workflows/test-lang-rust-ci.yml +++ b/.github/workflows/test-lang-rust-ci.yml @@ -95,11 +95,12 @@ jobs: key: ${{ runner.os }}-${{ matrix.runner.name }}-${{ matrix.runner.target }}-${{ matrix.rust }}-cache1-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }} - name: Rust Toolchain - uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 # stable - with: - toolchain: ${{ matrix.rust }} - components: rustfmt - targets: ${{ matrix.runner.target }} + run: | + rustup update ${{ matrix.rust }} + rustup toolchain install ${{ matrix.rust }} + rustup default ${{ matrix.rust }} + rustup component add rustfmt + rustup target add ${{ matrix.runner.target }} # Check if the doc cumment in avro/src/lib.rs and avro/README.md are in sync. - name: Run cargo-rdme @@ -151,9 +152,10 @@ jobs: persist-credentials: false - name: Rust Toolchain - uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 # stable - with: - toolchain: stable + run: | + rustup update stable + rustup toolchain install stable + rustup default stable - name: Cache Cargo uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 @@ -251,10 +253,11 @@ jobs: persist-credentials: false - name: Rust Toolchain - uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 # stable - with: - toolchain: stable - targets: wasm32-unknown-unknown + run: | + rustup update stable + rustup toolchain install stable + rustup default stable + rustup target add wasm32-unknown-unknown - name: Cache Cargo uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 diff --git a/.github/workflows/test-lang-rust-clippy.yml b/.github/workflows/test-lang-rust-clippy.yml index 91bc67f..10ff7fc 100644 --- a/.github/workflows/test-lang-rust-clippy.yml +++ b/.github/workflows/test-lang-rust-clippy.yml @@ -45,8 +45,10 @@ jobs: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: false - - uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 # stable - with: - toolchain: ${{ matrix.rust }} - components: clippy + - name: Rust toolchain + run: | + rustup update ${{ matrix.rust }} + rustup toolchain install ${{ matrix.rust }} + rustup default ${{ matrix.rust }} + rustup component add rust - run: cargo clippy --all-features --all-targets --workspace
