Skip to content

Commit

Permalink
Use pre-installed rustup
Browse files Browse the repository at this point in the history
All of our runners (including self-hosted runners) now have rustup
available. So this patch removes the use of curl to install it.
  • Loading branch information
kylewillmon committed Sep 26, 2024
1 parent fa27b65 commit 6af39bb
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,11 @@ jobs:
name: Install protoc
run: choco install protoc

- if: ${{ runner.os == 'Windows' }}
name: Install Rust toolchain
run: rustup toolchain install stable --profile minimal --target ${{ matrix.target }}

- if: ${{ runner.os != 'Windows' }}
name: Install Rust toolchain
run: |
curl https://sh.rustup.rs -sSf \
| sh -s -- -y --default-toolchain stable --profile minimal --target ${{ matrix.target }}
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: Build Distributions
run: cargo build --release --target ${{ matrix.target }} ${{ matrix.flags }}
run: cargo +stable build --release --target ${{ matrix.target }} ${{ matrix.flags }}

- name: Upload release artifacts
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
Expand Down

0 comments on commit 6af39bb

Please sign in to comment.