From 5712c82f0bb9de296980c204a40a0f83abbcfd4e Mon Sep 17 00:00:00 2001 From: Siew Kam Onn Date: Tue, 14 Jul 2026 19:38:11 +0800 Subject: [PATCH 1/3] fix: replace rust-toolchain action with rustup commands for toolchain setup --- .github/workflows/build.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f69d98f9..ed254d8a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,10 +48,7 @@ jobs: - uses: actions/checkout@v6 - name: Setup Rust - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 - with: - toolchain: "nightly" - components: rustfmt + run: rustup toolchain install nightly --profile minimal --component rustfmt - name: Cache Cargo uses: Swatinem/rust-cache@v2 @@ -152,7 +149,9 @@ jobs: path: . - name: Setup Rust - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 + run: | + rustup toolchain install stable --profile minimal + rustup default stable - name: Cache Cargo uses: Swatinem/rust-cache@v2 @@ -231,7 +230,9 @@ jobs: path: . - name: Setup Rust - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 + run: | + rustup toolchain install stable --profile minimal + rustup default stable - name: Cache Cargo uses: Swatinem/rust-cache@v2 @@ -286,7 +287,10 @@ jobs: steps: - uses: actions/checkout@v6 - - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 + - name: Setup Rust + run: | + rustup toolchain install stable --profile minimal + rustup default stable - run: rm LICENSE.txt - name: Download LICENSE.txt @@ -368,7 +372,10 @@ jobs: steps: - uses: actions/checkout@v6 - - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 + - name: Setup Rust + run: | + rustup toolchain install stable --profile minimal + rustup default stable - run: rm LICENSE.txt - name: Download LICENSE.txt From aed5fe70a58797ab7f97c2911dffe545365e55d0 Mon Sep 17 00:00:00 2001 From: Siew Kam Onn Date: Tue, 14 Jul 2026 21:07:45 +0800 Subject: [PATCH 2/3] fix: pin dtolnay/rust-toolchain sha --- .github/workflows/build.yml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ed254d8a9..8f69d98f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,7 +48,10 @@ jobs: - uses: actions/checkout@v6 - name: Setup Rust - run: rustup toolchain install nightly --profile minimal --component rustfmt + uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 + with: + toolchain: "nightly" + components: rustfmt - name: Cache Cargo uses: Swatinem/rust-cache@v2 @@ -149,9 +152,7 @@ jobs: path: . - name: Setup Rust - run: | - rustup toolchain install stable --profile minimal - rustup default stable + uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 - name: Cache Cargo uses: Swatinem/rust-cache@v2 @@ -230,9 +231,7 @@ jobs: path: . - name: Setup Rust - run: | - rustup toolchain install stable --profile minimal - rustup default stable + uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 - name: Cache Cargo uses: Swatinem/rust-cache@v2 @@ -287,10 +286,7 @@ jobs: steps: - uses: actions/checkout@v6 - - name: Setup Rust - run: | - rustup toolchain install stable --profile minimal - rustup default stable + - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 - run: rm LICENSE.txt - name: Download LICENSE.txt @@ -372,10 +368,7 @@ jobs: steps: - uses: actions/checkout@v6 - - name: Setup Rust - run: | - rustup toolchain install stable --profile minimal - rustup default stable + - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 - run: rm LICENSE.txt - name: Download LICENSE.txt From a3f8579b3fdd8f9b5ed20a5c0e9f53a106356e87 Mon Sep 17 00:00:00 2001 From: Siew Kam Onn Date: Tue, 14 Jul 2026 21:14:21 +0800 Subject: [PATCH 3/3] pin dtolnay/rust-toolchain sha --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f69d98f9..954b615e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,7 +48,7 @@ jobs: - uses: actions/checkout@v6 - name: Setup Rust - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 + uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 with: toolchain: "nightly" components: rustfmt