From f7664d9161d65b2c9989b14a747d107f12d51977 Mon Sep 17 00:00:00 2001 From: BreadFish64 Date: Fri, 17 Aug 2018 10:54:40 -0500 Subject: [PATCH] Add aarch64 CI --- .travis.yml | 10 ++++++++++ .travis/build-aarch64-linux/build.sh | 11 +++++++++++ .travis/build-aarch64-linux/deps.sh | 12 ++++++++++++ .travis/build-aarch64-linux/docker.sh | 4 ++++ .travis/build-aarch64-linux/run.sh | 4 ++++ 5 files changed, 41 insertions(+) create mode 100755 .travis/build-aarch64-linux/build.sh create mode 100755 .travis/build-aarch64-linux/deps.sh create mode 100755 .travis/build-aarch64-linux/docker.sh create mode 100755 .travis/build-aarch64-linux/run.sh diff --git a/.travis.yml b/.travis.yml index c88d7253..4940c2af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,16 @@ matrix: - ninja-build install: ./.travis/build-x86_64-linux/deps.sh script: ./.travis/build-x86_64-linux/build.sh + - env: NAME="Linux aarch64 Build" + os: linux + dist: trusty + sudo: required + services: docker + addons: + apt: + sources: + - ubuntu-toolchain-r-test + script: ./.travis/build-aarch64-linux/run.sh - env: NAME="macOS Build" os: osx sudo: false diff --git a/.travis/build-aarch64-linux/build.sh b/.travis/build-aarch64-linux/build.sh new file mode 100755 index 00000000..c348d96a --- /dev/null +++ b/.travis/build-aarch64-linux/build.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e +set -x + +export PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig:$PKG_CONFIG_PATH + +cd dynarmic +mkdir build && cd build +cmake .. -DBoost_INCLUDE_DIRS=${PWD}/../externals/ext-boost -DCMAKE_BUILD_TYPE=Release -DDYNARMIC_TESTS=false -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc-8 -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++-8 +make -j4 diff --git a/.travis/build-aarch64-linux/deps.sh b/.travis/build-aarch64-linux/deps.sh new file mode 100755 index 00000000..17227c98 --- /dev/null +++ b/.travis/build-aarch64-linux/deps.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e +set -x + +apt-get update +apt-get install -y git cmake gcc make g++-8-aarch64-linux-gnu + +# TODO: This isn't ideal. +cd dynarmic/externals +git clone https://github.com/MerryMage/ext-boost +cd .. diff --git a/.travis/build-aarch64-linux/docker.sh b/.travis/build-aarch64-linux/docker.sh new file mode 100755 index 00000000..0a1b7015 --- /dev/null +++ b/.travis/build-aarch64-linux/docker.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +dynarmic/.travis/build-aarch64-linux/deps.sh +dynarmic/.travis/build-aarch64-linux/build.sh diff --git a/.travis/build-aarch64-linux/run.sh b/.travis/build-aarch64-linux/run.sh new file mode 100755 index 00000000..998c3a40 --- /dev/null +++ b/.travis/build-aarch64-linux/run.sh @@ -0,0 +1,4 @@ +#!/bin/sh + + docker pull ubuntu:18.04 + docker run -v $(pwd):/dynarmic ubuntu:18.04 dynarmic/.travis/build-aarch64-linux/docker.sh