Skip to content

Commit 2af9e5f

Browse files
committed
xxx
1 parent 2dae296 commit 2af9e5f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/build-rust.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,14 @@ jobs:
2323
apt-get update
2424
apt-get install -y curl build-essential
2525
26-
# Install Rust
27-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
28-
. "$HOME/.cargo/env"
26+
# Install Rust with simpler curl command
27+
curl -sSf https://sh.rustup.rs > rustup.sh
28+
chmod +x rustup.sh
29+
./rustup.sh -y --default-toolchain stable --profile minimal
30+
31+
# Export cargo env manually since . might not work
32+
export PATH="$HOME/.cargo/bin:$PATH"
33+
export CARGO_HOME="$HOME/.cargo"
2934
3035
cd /work/lib
3136
cargo build --release

0 commit comments

Comments
 (0)