Fix Rust installation in CI workflow
Build / build (ccsm-darwin-amd64.tar.gz, ccsm, x86_64-apple-darwin) (push) Failing after 1m36s
Build / build (ccsm-linux-amd64.tar.gz, ccsm, x86_64-unknown-linux-gnu) (push) Failing after 2m32s
Build / build (ccsm-windows-amd64.zip, ccsm.exe, x86_64-pc-windows-gnu) (push) Failing after 2m57s

Replace `rustup update` (which assumes Rust is pre-installed) with the
official rustup install script, then add ~/.cargo/bin to GITHUB_PATH.
This commit is contained in:
2026-06-18 17:41:57 +08:00
parent b08904586d
commit 74cbccc5a8
+3 -1
View File
@@ -28,7 +28,9 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install Rust - name: Install Rust
run: rustup update stable && rustup default stable run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: Build (Linux) - name: Build (Linux)
if: matrix.target == 'x86_64-unknown-linux-gnu' if: matrix.target == 'x86_64-unknown-linux-gnu'