Skip to content

Commit 061cb3e

Browse files
committed
[SPARK-53016][INFRA] Replace actions-rs/toolchain with dtolnay/rust-toolchain
### What changes were proposed in this pull request? This PR proposes to replace `actions-rs/toolchain` with `dtolnay/rust-toolchain`. Currently actions-rs doesn't work in spark-connect-rust repository. https://github.com/apache/spark-connect-rust/actions/runs/16609256565 ``` actions-rs/toolchainv1 is not allowed to be used in apache/spark-connect-rust. Actions in this workflow must be: within a repository that belongs to your Enterprise account, created by GitHub, verified in the GitHub Marketplace, or matching the following: 1Password/load-secrets-action581a835fb51b8e7ec56b71cf2ffddd7e68bb25e0, AdoptOpenJDK/install-jdk*, BobAnkh/auto-generate-changelog*, DavidAnson/markdownlint-cli2-action992badcdf24e3b8eb7e87ff9287fe931bcb00c6e, DavidAnson/markdownlint-cli2-actionb4c9feab76d8025d1e83c653fa3990936df0e6c8, DavidAnson/markdownlint-cli2-actionv16, EnricoMi/publish-unit-test-result-action*, JamesIves/github-pages-deploy-action6c2d9db40f9296374acc17b90404b6e8864128c8, JamesIves/github-pages-deploy-action881db5376404c5c8d621010bcbec0310b58d5e29, JamesIves/github-pages-deploy-actionv4.6.8, JustinBeckwith/linkinator-action3d5ba091319fa7b0ac14703761eebb7d100e6f6d, JustinBeckwith/linkinator-actionv1.11.0, Kesin11/actions-timeline427ee2cf860166e404d... ``` Also, actions-rs/toolchain is public archived. https://github.com/actions-rs/toolchain ### Why are the changes needed? Recovering CI on GA. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? I confirmed this change works on my repository. https://github.com/sarutak/spark-connect-rust/actions/runs/16614429755 ### Was this patch authored or co-authored using generative AI tooling? No. Closes #5 from sarutak/replace-actions-rs-with-dtolnay. Authored-by: Kousuke Saruta <[email protected]> Signed-off-by: Kousuke Saruta <[email protected]>
1 parent ca629aa commit 061cb3e

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ jobs:
4040
version: 23.x
4141

4242
- name: Install minimal stable with clippy and rustfmt
43-
uses: actions-rs/toolchain@v1
43+
uses: dtolnay/rust-toolchain@stable
4444
with:
45-
profile: default
4645
toolchain: stable
47-
override: true
46+
components: rustfmt
4847

4948
- name: Format
5049
run: cargo fmt -- --check
@@ -63,11 +62,10 @@ jobs:
6362
version: 23.x
6463

6564
- name: install minimal stable with clippy and rustfmt
66-
uses: actions-rs/toolchain@v1
65+
uses: dtolnay/rust-toolchain@stable
6766
with:
68-
profile: default
6967
toolchain: stable
70-
override: true
68+
components: clippy
7169

7270
- uses: Swatinem/rust-cache@v2
7371

@@ -103,11 +101,9 @@ jobs:
103101
version: 23.x
104102

105103
- name: install minimal stable with clippy and rustfmt
106-
uses: actions-rs/toolchain@v1
104+
uses: dtolnay/rust-toolchain@stable
107105
with:
108-
profile: default
109106
toolchain: stable
110-
override: true
111107

112108
- uses: Swatinem/rust-cache@v2
113109

0 commit comments

Comments
 (0)