-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
9 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,9 @@ | ||
set -euxo pipefail | ||
|
||
main() { | ||
# This fetches latest stable release of Xargo | ||
local tag=$(git ls-remote --tags --refs --exit-code https://github.com/japaric/xargo \ | ||
| cut -d/ -f3 \ | ||
| grep -E '^v[0.1.0-9.]+$' \ | ||
| sort --version-sort \ | ||
| tail -n1) | ||
|
||
curl -LSfs https://japaric.github.io/trust/install.sh | \ | ||
sh -s -- \ | ||
--force \ | ||
--git japaric/xargo \ | ||
--tag $tag \ | ||
--target x86_64-unknown-linux-musl | ||
|
||
rustup component add rust-src | ||
if [ $TARGET = thumbv7em-none-eabihf ]; then | ||
rustup target add $TARGET | ||
fi | ||
} | ||
|
||
main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
set -euxo pipefail | ||
|
||
main() { | ||
cargo check --target $TARGET | ||
|
||
if [ $TARGET = x86_64-unknown-linux-gnu ]; then | ||
bash gen-examples.sh | ||
git diff --exit-code | ||
|
||
cargo check --target $TARGET | ||
return | ||
fi | ||
|
||
xargo check --target $TARGET | ||
xargo check --target $TARGET --examples | ||
cargo check --target $TARGET --examples | ||
} | ||
|
||
main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters