Simplify CI scripts
This commit is contained in:
parent
41b4c1c1e6
commit
9352831150
|
@ -22,11 +22,11 @@ matrix:
|
||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- bash ci/install.sh
|
- ci/install.sh
|
||||||
- export PATH="$PATH:$PWD/gcc/bin"
|
- export PATH="$PATH:$PWD/gcc/bin"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- bash ci/script.sh
|
- ci/script.sh
|
||||||
|
|
||||||
|
|
||||||
cache: cargo
|
cache: cargo
|
||||||
|
|
|
@ -1,12 +1,8 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
main() {
|
rustup target add $TARGET
|
||||||
if [ $TARGET != x86_64-unknown-linux-gnu ]; then
|
|
||||||
rustup target add $TARGET
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir gcc
|
mkdir gcc
|
||||||
curl -L https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.1.0-2018.12.0-x86_64-linux-ubuntu14.tar.gz | tar --strip-components=1 -C gcc -xz
|
curl -L https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.1.0-2018.12.0-x86_64-linux-ubuntu14.tar.gz | tar --strip-components=1 -C gcc -xz
|
||||||
}
|
|
||||||
|
|
||||||
main
|
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
main() {
|
cargo check --target $TARGET
|
||||||
cargo check --target $TARGET
|
|
||||||
|
|
||||||
if [ $TRAVIS_RUST_VERSION = nightly ]; then
|
if [ $TRAVIS_RUST_VERSION = nightly ]; then
|
||||||
cargo check --target $TARGET --features inline-asm
|
cargo check --target $TARGET --features inline-asm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
|
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
|
||||||
./check-blobs.sh
|
./check-blobs.sh
|
||||||
fi
|
fi
|
||||||
}
|
|
||||||
|
|
||||||
main
|
|
||||||
|
|
Loading…
Reference in New Issue