summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorrachitchokshi <rachitchokshi@gmail.com>2018-09-08 14:23:14 -0700
committerDavid Peter <sharkdp@users.noreply.github.com>2018-09-10 21:24:15 +0200
commit1b6df8a4802cd4580f515cf63756dad1649290fe (patch)
tree9d012e29521d9d92eb8b966d1c81bd7c1be5528a /ci
parentd6c8fee04419cf6fb69e51fd62aacc32f83bfef8 (diff)
Enabled build target aarch64-unknown-linux-gnu for arm64 architecture
Diffstat (limited to 'ci')
-rwxr-xr-xci/before_install.bash8
-rwxr-xr-xci/script.bash2
2 files changed, 9 insertions, 1 deletions
diff --git a/ci/before_install.bash b/ci/before_install.bash
index 709be7d5..9acf6025 100755
--- a/ci/before_install.bash
+++ b/ci/before_install.bash
@@ -27,3 +27,11 @@ if [[ $TARGET == arm-unknown-linux-gnueabihf ]]; then
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 \
+ gcc-aarch64-linux-gnu
+fi
diff --git a/ci/script.bash b/ci/script.bash
index 321dcb14..fc874b96 100755
--- a/ci/script.bash
+++ b/ci/script.bash
@@ -6,7 +6,7 @@ set -ex
cargo build --target "$TARGET" --verbose
# We cannot run arm executables on linux
-if [[ $TARGET != arm-unknown-linux-gnueabihf ]]; then
+if [[ $TARGET != arm-unknown-linux-gnueabihf ]] && [[ $TARGET != aarch64-unknown-linux-gnu ]]; then
cargo test --target "$TARGET" --verbose
# Run 'bat' on its own source code and the README