Skip to content

Commit

Permalink
use rustup default instead of rustup toolchain install
Browse files Browse the repository at this point in the history
  • Loading branch information
tdyas committed Mar 4, 2025
1 parent 4e2fb7a commit 74fc7a4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ jobs:
'
- name: Install Rust toolchain
run: 'rustup toolchain install 1.85.0
run: '# Set the default toolchain. Installs the toolchain if it is not already
installed.
rustup default 1.85.0
cargo version
Expand Down Expand Up @@ -156,7 +159,10 @@ jobs:
'
- name: Install Rust toolchain
run: 'rustup toolchain install 1.85.0
run: '# Set the default toolchain. Installs the toolchain if it is not already
installed.
rustup default 1.85.0
cargo version
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,9 @@ jobs:
'
- name: Install Rust toolchain
run: 'rustup toolchain install 1.85.0
run: '# Set the default toolchain. Installs the toolchain if it is not already installed.
rustup default 1.85.0
cargo version
Expand Down Expand Up @@ -436,7 +438,9 @@ jobs:
'
- name: Install Rust toolchain
run: 'rustup toolchain install 1.85.0
run: '# Set the default toolchain. Installs the toolchain if it is not already installed.
rustup default 1.85.0
cargo version
Expand Down
3 changes: 2 additions & 1 deletion src/python/pants_release/generate_github_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ def install_rustup() -> list[Step]:
"name": "Install Rust toolchain",
"run": dedent(
f"""\
rustup toolchain install {rust_channel()}
# Set the default toolchain. Installs the toolchain if it is not already installed.
rustup default {rust_channel()}
cargo version
"""
),
Expand Down

0 comments on commit 74fc7a4

Please sign in to comment.