Install Rust directly in Apple workflow
Some checks are pending
Build Rust / Cargo Test (push) Waiting to run
Build Site / Next.js Build (push) Waiting to run

This commit is contained in:
Conrad Kramer 2026-03-18 23:44:19 -07:00
parent 28fd58b009
commit 6fcd7ff6ed

View file

@ -63,10 +63,30 @@ jobs:
DEVELOPER_DIR="$selected" /usr/bin/xcodebuild -version || true
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.85.0
targets: ${{ matrix.rust-targets }}
shell: bash
run: |
set -euo pipefail
export RUSTUP_HOME="${HOME}/.rustup"
export CARGO_HOME="${HOME}/.cargo"
if ! command -v rustup >/dev/null 2>&1; then
curl --proto '=https' --tlsv1.2 -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.85.0
else
rustup set profile minimal
rustup toolchain install 1.85.0
rustup default 1.85.0
fi
echo "${CARGO_HOME}/bin" >> "${GITHUB_PATH}"
. "${CARGO_HOME}/env"
targets='${{ matrix.rust-targets }}'
for target in ${targets//,/ }; do
rustup target add "${target}"
done
rustc --version
cargo --version
- name: Install Protobuf
shell: bash