Add aarch64 CI
This commit is contained in:
parent
659d78c9c4
commit
f7664d9161
10
.travis.yml
10
.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
|
||||
|
11
.travis/build-aarch64-linux/build.sh
Executable file
11
.travis/build-aarch64-linux/build.sh
Executable 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
|
12
.travis/build-aarch64-linux/deps.sh
Executable file
12
.travis/build-aarch64-linux/deps.sh
Executable 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 ..
|
4
.travis/build-aarch64-linux/docker.sh
Executable file
4
.travis/build-aarch64-linux/docker.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
dynarmic/.travis/build-aarch64-linux/deps.sh
|
||||
dynarmic/.travis/build-aarch64-linux/build.sh
|
4
.travis/build-aarch64-linux/run.sh
Executable file
4
.travis/build-aarch64-linux/run.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user