mirror of
https://github.com/ivabus/pantry
synced 2024-09-20 00:30:48 +03:00
fix(cargo)
closes #2593 cargo requires cargo; the static ones get too old, and include their build date, making them hard to find. just use our last cargo.
This commit is contained in:
parent
6b1545c843
commit
0ffc0354f0
|
@ -25,27 +25,8 @@ build:
|
|||
gnu.org/tar: '*'
|
||||
tukaani.org/xz: '*'
|
||||
freedesktop.org/pkg-config: ^0.29
|
||||
script: |-
|
||||
case "{{hw.platform}}-{{hw.arch}}" in
|
||||
darwin-aarch64)
|
||||
TRIPLE=aarch64-apple-darwin
|
||||
;;
|
||||
darwin-x86-64)
|
||||
TRIPLE=x86_64-apple-darwin
|
||||
;;
|
||||
linux-aarch64)
|
||||
TRIPLE=aarch64-unknown-linux-gnu
|
||||
;;
|
||||
linux-x86-64)
|
||||
TRIPLE=x86_64-unknown-linux-gnu
|
||||
;;
|
||||
esac
|
||||
|
||||
# cargo requires cargo to cargo
|
||||
# FIXME: versions?
|
||||
curl https://static.rust-lang.org/dist/2022-08-11/cargo-1.63.0-$TRIPLE.tar.xz | tar Jxf -
|
||||
|
||||
./cargo-1.63.0-$TRIPLE/cargo/bin/cargo $ARGS
|
||||
rust-lang.org/cargo: '*'
|
||||
script: cargo $ARGS
|
||||
env:
|
||||
ARGS:
|
||||
- install
|
||||
|
|
Loading…
Reference in a new issue