You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sedona.apache.org by ji...@apache.org on 2026/07/24 15:51:06 UTC
(sedona-spatialbench) 01/01: Install the Rust toolchain with rustup instead of dtolnay/rust-toolchain
This is an automated email from the ASF dual-hosted git repository.
jiayuasu pushed a commit to branch rust-ci-toolchain
in repository https://gitbox.apache.org/repos/asf/sedona-spatialbench.git
commit 54e517bab927b977e462696735fa162e2a523c6e
Author: Jia Yu <ji...@apache.org>
AuthorDate: Fri Jul 24 08:50:54 2026 -0700
Install the Rust toolchain with rustup instead of dtolnay/rust-toolchain
The Rust workflow has failed at startup on every run since 2026-07-01: the
dtolnay/rust-toolchain action is not on the ASF GitHub Actions allowlist, so the run
is blocked before any job starts (GitHub reports a generic "workflow file issue").
The sibling apache/sedona-db project's Rust CI avoids that action and installs the
toolchain with rustup — while still using Swatinem/rust-cache, which is allowlisted.
Mirror that pattern: each job installs stable via `rustup toolchain install stable
--no-self-update` + `rustup default stable` (the lint job also adds rustfmt and
clippy). rustup is preinstalled on ubuntu-latest, so this is a drop-in replacement;
Swatinem/rust-cache and everything else are unchanged.
---
.github/workflows/rust.yml | 52 ++++++++++++++++++++++++++--------------------
1 file changed, 29 insertions(+), 23 deletions(-)
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index feb7ea6..cbb2b7f 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -34,11 +34,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- - name: Setup Rust toolchain
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # @stable
- with:
- components: rustfmt, clippy
- toolchain: stable
+ - name: Use stable Rust
+ run: |
+ rustup toolchain install stable --no-self-update
+ rustup default stable
+ rustup component add rustfmt clippy
- uses: Swatinem/rust-cache@v2
with:
# Update this key to force a new cache
@@ -55,9 +55,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # @stable
- with:
- toolchain: stable
+ - name: Use stable Rust
+ run: |
+ rustup toolchain install stable --no-self-update
+ rustup default stable
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "rust-test-tests-spatialbench-v1"
@@ -68,9 +69,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # @stable
- with:
- toolchain: stable
+ - name: Use stable Rust
+ run: |
+ rustup toolchain install stable --no-self-update
+ rustup default stable
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "rust-test-doc-spatialbench-v1"
@@ -81,9 +83,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # @stable
- with:
- toolchain: stable
+ - name: Use stable Rust
+ run: |
+ rustup toolchain install stable --no-self-update
+ rustup default stable
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "rust-test-all-spatialbench-arrow-v1"
@@ -94,9 +97,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # @stable
- with:
- toolchain: stable
+ - name: Use stable Rust
+ run: |
+ rustup toolchain install stable --no-self-update
+ rustup default stable
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "rust-test-all-spatialbench-cli-v1"
@@ -108,9 +112,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # @stable
- with:
- toolchain: stable
+ - name: Use stable Rust
+ run: |
+ rustup toolchain install stable --no-self-update
+ rustup default stable
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "rust-docs-v1"
@@ -166,10 +171,11 @@ jobs:
mc alias set local http://localhost:9000 minioadmin minioadmin
mc mb local/spatialbench-test
- - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # @stable
- with:
- toolchain: stable
+ - name: Use stable Rust
if: steps.changes.outputs.s3 == 'true'
+ run: |
+ rustup toolchain install stable --no-self-update
+ rustup default stable
- uses: Swatinem/rust-cache@v2
if: steps.changes.outputs.s3 == 'true'