Skip to content

Commit

Permalink
chore(ci): switch from action-rs/toolchain to actions-rust-lang/setup…
Browse files Browse the repository at this point in the history
…-rust-toolchain (#7972)

### Description

#7409 deleted `rust-toolchain` in favor of `rust-toolchain.toml` which
isn't supported by the no longer maintained `action-rs/toolchain`

This broke our release process:
https://github.com/vercel/turbo/actions/runs/8695260821/job/23846306200#step:7:12

### Testing Instructions

[Release dry
run](https://github.com/vercel/turbo/actions/runs/8697187026)

Closes TURBO-2810
  • Loading branch information
chris-olszewski committed Apr 16, 2024
1 parent f3f89e6 commit e07f0ba
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/turborepo-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,22 @@ jobs:
- name: Setup capnproto
uses: ./.github/actions/setup-capnproto

- name: Setup Rust Up
if: ${{ matrix.settings.container-setup }}
# setup-rust-toolchain uses the --retry-connrefused flag with curl to install rustup
# this flag was added in curl 7.52.0, but the Ubuntu version we use only has 7.47.0
run: |
curl --proto '=https' --tlsv1.2 --retry 10 --location --silent --show-error --fail "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH
- name: Rust Setup
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
profile: minimal
override: true
target: ${{ matrix.settings.target }}
# needed to not make it override the defaults
rustflags: ""
# we want more specific settings
cache: false

- name: Build Setup
shell: bash
Expand Down

0 comments on commit e07f0ba

Please sign in to comment.