Skip to content

Commit

Permalink
update cross installation
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Mar 9, 2025
1 parent 662588a commit 3b40434
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/install-cross.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/bash

curl -s https://api.github.com/repos/cross-rs/cross/releases/latest \
| grep cross-x86_64-unknown-linux-gnu.tar.gz \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
# curl -s https://api.github.com/repos/cross-rs/cross/releases/latest \
# | grep cross-x86_64-unknown-linux-gnu.tar.gz \
# | cut -d : -f 2,3 \
# | tr -d \" \
# | wget -qi -

tar -zxvf cross-x86_64-unknown-linux-gnu.tar.gz -C /usr/bin
rm -f cross-x86_64-unknown-linux-gnu.tar.gz
# tar -zxvf cross-x86_64-unknown-linux-gnu.tar.gz -C /usr/bin
# rm -f cross-x86_64-unknown-linux-gnu.tar.gz

source /home/runner/.cargo/env
cargo install cross --git https://github.com/cross-rs/cross --rev 36c0d7810ddde073f603c82d896c2a6c886ff7a4

0 comments on commit 3b40434

Please sign in to comment.