We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cross
1 parent 28a5119 commit 2bc1835Copy full SHA for 2bc1835
ci/install.sh
@@ -7,15 +7,22 @@ main() {
7
local target=
8
if [ $TRAVIS_OS_NAME = linux ]; then
9
target=x86_64-unknown-linux-gnu
10
+ sort=sort
11
else
12
target=x86_64-apple-darwin
13
+ sort=gsort
14
fi
15
16
+ local tag=$(git ls-remote --tags --refs --exit-code https://github.com/japaric/cross \
17
+ | cut -d/ -f3 \
18
+ | grep -E '^v[0-9.]+$' \
19
+ | $sort --version-sort \
20
+ | tail -n1)
21
curl -LSfs https://japaric.github.io/trust/install.sh | \
22
sh -s -- \
23
--force \
24
--git japaric/cross \
- --tag v0.1.4 \
25
+ --tag $tag \
26
--target $target
27
}
28
0 commit comments