mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Merge pull request #110 from herrernst/travis-cross-arm
travis: also test cross-compilation for arm
This commit is contained in:
commit
cf7378fda4
1 changed files with 10 additions and 1 deletions
11
.travis.yml
11
.travis.yml
|
@ -16,7 +16,15 @@ addons:
|
||||||
packages:
|
packages:
|
||||||
- libprotoc-dev
|
- libprotoc-dev
|
||||||
- portaudio19-dev
|
- portaudio19-dev
|
||||||
- libpulse-dev
|
- libpulse-dev
|
||||||
|
- gcc-arm-linux-gnueabihf
|
||||||
|
- libc6-dev-armhf-cross
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- mkdir -p ~/.cargo
|
||||||
|
- echo '[target.armv7-unknown-linux-gnueabihf]' > ~/.cargo/config
|
||||||
|
- echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config
|
||||||
|
- sh ~/rust-installer/rustup.sh --prefix=$(rustc --print sysroot) -y --disable-sudo --add-target=armv7-unknown-linux-gnueabihf
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cargo build --no-default-features --features "with-syntex"
|
- cargo build --no-default-features --features "with-syntex"
|
||||||
|
@ -24,6 +32,7 @@ script:
|
||||||
- cargo build --no-default-features --features "with-syntex facebook"
|
- cargo build --no-default-features --features "with-syntex facebook"
|
||||||
- cargo build --no-default-features --features "with-syntex portaudio-backend"
|
- cargo build --no-default-features --features "with-syntex portaudio-backend"
|
||||||
- cargo build --no-default-features --features "with-syntex pulseaudio-backend"
|
- cargo build --no-default-features --features "with-syntex pulseaudio-backend"
|
||||||
|
- cargo build --no-default-features --features "with-syntex" --target armv7-unknown-linux-gnueabihf
|
||||||
|
|
||||||
# Building without syntex only works on nightly
|
# Building without syntex only works on nightly
|
||||||
- if [[ $TRAVIS_RUST_VERSION == *"nightly"* ]]; then
|
- if [[ $TRAVIS_RUST_VERSION == *"nightly"* ]]; then
|
||||||
|
|
Loading…
Reference in a new issue