Add aarch64 CI

This commit is contained in:
BreadFish64 2018-08-17 10:54:40 -05:00 committed by SachinVin
parent 659d78c9c4
commit f7664d9161
5 changed files with 41 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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 ..

View File

@ -0,0 +1,4 @@
#!/bin/sh
dynarmic/.travis/build-aarch64-linux/deps.sh
dynarmic/.travis/build-aarch64-linux/build.sh

View File

@ -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