Skip to content

Commit 2bc1835

Browse files
author
Jorge Aparicio
committed
install a more recent cross
1 parent 28a5119 commit 2bc1835

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ci/install.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,22 @@ main() {
77
local target=
88
if [ $TRAVIS_OS_NAME = linux ]; then
99
target=x86_64-unknown-linux-gnu
10+
sort=sort
1011
else
1112
target=x86_64-apple-darwin
13+
sort=gsort
1214
fi
1315

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)
1421
curl -LSfs https://japaric.github.io/trust/install.sh | \
1522
sh -s -- \
1623
--force \
1724
--git japaric/cross \
18-
--tag v0.1.4 \
25+
--tag $tag \
1926
--target $target
2027
}
2128

0 commit comments

Comments
 (0)