mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-10-02 14:54:30 +00:00
drop Xargo
This commit is contained in:
parent
9fc5f71799
commit
301c1becdf
@ -33,10 +33,7 @@ script:
|
|||||||
|
|
||||||
after_script: set +e
|
after_script: set +e
|
||||||
|
|
||||||
cache:
|
cache: cargo
|
||||||
cargo: true
|
|
||||||
directories:
|
|
||||||
- $HOME/.xargo
|
|
||||||
|
|
||||||
before_cache:
|
before_cache:
|
||||||
# Travis can't cache files that are not readable by "others"
|
# Travis can't cache files that are not readable by "others"
|
||||||
|
@ -1,21 +1,9 @@
|
|||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
# install latest Xargo
|
if [ $TARGET != x86_64-unknown-linux-gnu ]; then
|
||||||
local tag=$(git ls-remote --tags --refs --exit-code https://github.com/japaric/xargo \
|
rustup target add $TARGET
|
||||||
| cut -d/ -f3 \
|
fi
|
||||||
| grep -E '^v[0-9.]+$' \
|
|
||||||
| sort --version-sort \
|
|
||||||
| tail -n1)
|
|
||||||
curl -LSfs https://japaric.github.io/trust/install.sh | \
|
|
||||||
sh -s -- \
|
|
||||||
--force \
|
|
||||||
--git japaric/xargo \
|
|
||||||
--target x86_64-unknown-linux-musl \
|
|
||||||
--tag $tag
|
|
||||||
|
|
||||||
rustup component list | grep 'rust-src.*installed' || \
|
|
||||||
rustup component add rust-src
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
13
ci/script.sh
13
ci/script.sh
@ -1,13 +1,9 @@
|
|||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
case $TARGET in
|
|
||||||
thumb*m-none-eabi)
|
|
||||||
xargo check --target $TARGET
|
|
||||||
;;
|
|
||||||
x86_64-unknown-linux-gnu)
|
|
||||||
cargo check --target $TARGET
|
cargo check --target $TARGET
|
||||||
|
|
||||||
|
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
|
||||||
cargo test --target $TARGET
|
cargo test --target $TARGET
|
||||||
cargo test --target $TARGET --release
|
cargo test --target $TARGET --release
|
||||||
|
|
||||||
@ -17,12 +13,7 @@ main() {
|
|||||||
|
|
||||||
cargo test --test tsan --target $TARGET
|
cargo test --test tsan --target $TARGET
|
||||||
cargo test --test tsan --target $TARGET --release
|
cargo test --test tsan --target $TARGET --release
|
||||||
;;
|
fi
|
||||||
*)
|
|
||||||
# unhandled case
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
Loading…
x
Reference in New Issue
Block a user