Compare commits
1 commit
master
...
travis-arm
Author | SHA1 | Date | |
---|---|---|---|
|
5325d563aa |
1 changed files with 10 additions and 5 deletions
15
.travis.yml
15
.travis.yml
|
@ -4,6 +4,10 @@ rust:
|
||||||
- beta
|
- beta
|
||||||
- nightly
|
- nightly
|
||||||
|
|
||||||
|
arch:
|
||||||
|
- amd64
|
||||||
|
- arm64
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
|
@ -13,11 +17,12 @@ before_install:
|
||||||
- sudo apt-get install -y musl-tools
|
- sudo apt-get install -y musl-tools
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rustup target add x86_64-unknown-linux-musl
|
- TARGET=`[ $TRAVIS_CPU_ARCH == 'amd64' ] && echo x86_64 || echo aarch64`-unknown-linux-musl
|
||||||
- cargo test --target=x86_64-unknown-linux-musl
|
- rustup target add $TARGET
|
||||||
- cargo build --release --target=x86_64-unknown-linux-musl
|
- cargo test --target=$TARGET
|
||||||
- strip -s target/x86_64-unknown-linux-musl/release/sausagewiki
|
- cargo build --release --target=$TARGET
|
||||||
- XZ_OPT=-9 tar Jcf sausagewiki.tar.xz -C target/x86_64-unknown-linux-musl/release/ sausagewiki
|
- strip -s target/$TARGET/release/sausagewiki
|
||||||
|
- XZ_OPT=-9 tar Jcf sausagewiki-$TRAVIS_CPU_ARCH.tar.xz -C target/$TARGET/release/ sausagewiki
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in a new issue