on v0.11.0 help sign in
bat/ci/before_install.bash
37 lines 849 B history raw
1#!/usr/bin/env bash
3set -ex
5if [ "$TRAVIS_OS_NAME" != linux ]; then
6 exit 0
7fi
9sudo apt-get update
11# needed for musl targets
12sudo apt-get install -y musl-tools
14# needed to build deb packages
15sudo apt-get install -y fakeroot
17# needed for i686 linux gnu target
18if [[ $TARGET == i686-unknown-linux-gnu ]]; then
19 sudo apt-get install -y gcc-multilib
20fi
22# needed for cross-compiling for arm
23if [[ $TARGET == arm-unknown-linux-gnueabihf ]]; then
24 sudo apt-get install -y \
25 gcc-4.8-arm-linux-gnueabihf \
26 binutils-arm-linux-gnueabihf \
27 libc6-armhf-cross \
28 libc6-dev-armhf-cross
29fi
31# needed for cross-compiling for arm64
32if [[ $TARGET == aarch64-unknown-linux-gnu ]]; then
33 sudo apt-get install -y \
34 gcc-4.8-aarch64-linux-gnu \
35 binutils-aarch64-linux-gnu \
36 gcc-aarch64-linux-gnu
37fi