Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
delta/etc/ci/before_install.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
38 lines (30 sloc)
877 Bytes
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
#!/usr/bin/env bash | |
set -ex | |
if [ "$TRAVIS_OS_NAME" != linux ]; then | |
exit 0 | |
fi | |
sudo apt-get update | |
# needed for musl targets | |
sudo apt-get install -y musl-tools | |
# needed to build deb packages | |
sudo apt-get install -y fakeroot | |
# needed for i686 linux gnu target | |
if [[ $TARGET == i686-unknown-linux-gnu ]]; then | |
sudo apt-get install -y gcc-multilib | |
fi | |
# needed for cross-compiling for arm | |
if [[ $TARGET == arm-unknown-linux-gnueabihf ]]; then | |
sudo apt-get install -y \ | |
gcc-4.8-arm-linux-gnueabihf \ | |
binutils-arm-linux-gnueabihf \ | |
libc6-armhf-cross \ | |
libc6-dev-armhf-cross | |
fi | |
# needed for cross-compiling for arm64 | |
if [[ $TARGET == aarch64-unknown-linux-gnu ]]; then | |
sudo apt-get install -y \ | |
gcc-4.8-aarch64-linux-gnu \ | |
binutils-aarch64-linux-gnu \ | |
libc6-arm64-cross \ | |
libc6-dev-arm64-cross | |
fi |