Skip to content
Myr

Enable ARM cross-compilation

Before adoption: this commit came in with the history the project adopted, so no landing records it.

closes #244

authored by sharkdp · committed by sharkdp · parent e4f61bc · Browse files · 4 files+57 added−13 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+57 added−13 removed

  • other:+57 added−13 removed

4 files+57 added−13 removed

modified:ci/before_deploy.bash+10 added-3 removed
added:ci/before_install.bash+26 added
added:ci/script.bash+11 added
modified:.travis.yml+10 added-10 removed
18 unmodified lines
19 env: TARGET=i686-unknown-linux-musl20 - os: osx21 rust: stable22 env: TARGET=x86_64-apple-darwin23 - os: linux24 rust: stable25 env:26 - TARGET=arm-unknown-linux-gnueabihf27 - CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc-4.82829 # Beta channel.30 - os: linux31 rust: beta
54 unmodified lines
86 install:87 - cargo install --debug --force rustfmt-nightly88 script: cargo fmt -- --check8985addons:86 apt:87 packages:88 # needed for i686-unknown-linux-gnu target89 - gcc-multilib90 # needed to build deb packages91 - fakeroot90sudo: required9192before_install:93 - ci/before_install.bash9495env:96 global:97 # Default target on travis-ci.98 # Used as conditional check in the install stage
5 unmodified lines
104 # prevent target re-add error from rustup105 - if [[ $TRAVIS_OS_NAME = linux && $HOST != $TARGET ]]; then rustup target add $TARGET; fi106107script:106 # Incorporate TARGET env var to the build and test process107 - cargo build --target $TARGET --verbose108 - cargo test --target $TARGET --verbose108 - ci/script.bash109110before_deploy:111 - bash ci/before_deploy.bash112
29 unmodified lines