Migrate to github actions
This commit is contained in:
parent
a0d50b138e
commit
581f50a903
90
.github/workflows/ci.yml
vendored
Normal file
90
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
name: dynarmic-ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "*" ]
|
||||||
|
tags: [ "*" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "*" ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
linux-x86_64-gcc:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
gcc-ver: [7, 8]
|
||||||
|
env:
|
||||||
|
GCC_VERSION: ${{ matrix.gcc-ver }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Deps
|
||||||
|
run: ./.travis/build-x86_64-linux/deps.sh
|
||||||
|
- name: Build
|
||||||
|
run: ./.travis/build-x86_64-linux/build.sh
|
||||||
|
linux-aarch64-gcc-8:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Deps apt-get
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install \
|
||||||
|
gcc-8-aarch64-linux-gnu \
|
||||||
|
g++-8-aarch64-linux-gnu \
|
||||||
|
ninja-build \
|
||||||
|
qemu-user
|
||||||
|
- name: Deps
|
||||||
|
run: ./.travis/build-aarch64-linux/deps.sh
|
||||||
|
- name: Build
|
||||||
|
run: ./.travis/build-aarch64-linux/build.sh
|
||||||
|
linux:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
image: ["sse3-only-on-x86_64-linux", "test-with-unicorn-on-x86_64-linux"]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Deps apt-get
|
||||||
|
run: |
|
||||||
|
sudo apt-get install \
|
||||||
|
gcc-7 \
|
||||||
|
g++-7 \
|
||||||
|
llvm-dev \
|
||||||
|
ninja-build
|
||||||
|
- name: Deps
|
||||||
|
run: ./.travis/${{ matrix.image }}/deps.sh
|
||||||
|
- name: Build
|
||||||
|
run: ./.travis/${{ matrix.image }}/build.sh
|
||||||
|
macos:
|
||||||
|
runs-on: macos-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
arch: ["x86_64", "aarch64"]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Deps
|
||||||
|
run: ./.travis/build-${{ matrix.arch }}-macos/deps.sh
|
||||||
|
- name: Build
|
||||||
|
run: ./.travis/build-${{ matrix.arch }}-macos/build.sh
|
||||||
|
windows:
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Deps
|
||||||
|
run: ./.travis/build-x86_64-windows/deps.sh
|
||||||
|
shell: bash
|
||||||
|
- name: Set up MSVC
|
||||||
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
- name: Build
|
||||||
|
run: ./.travis/build-x86_64-windows/build.sh
|
||||||
|
shell: bash
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,5 @@
|
|||||||
# Built files
|
# Built files
|
||||||
build/
|
build/
|
||||||
build-*/
|
|
||||||
docs/Doxygen/
|
docs/Doxygen/
|
||||||
.vs/
|
.vs/
|
||||||
# Generated files
|
# Generated files
|
||||||
|
11
.travis/build-aarch64-macos/build.sh
Executable file
11
.travis/build-aarch64-macos/build.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
export MACOSX_DEPLOYMENT_TARGET=11.0
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake .. -GXcode -DBoost_INCLUDE_DIRS=${PWD}/../externals/ext-boost -DDYNARMIC_TESTS=0 -DCMAKE_OSX_ARCHITECTURES=arm64
|
||||||
|
xcodebuild -configuration Release
|
9
.travis/build-aarch64-macos/deps.sh
Executable file
9
.travis/build-aarch64-macos/deps.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
# TODO: This isn't ideal.
|
||||||
|
cd externals
|
||||||
|
git clone https://github.com/MerryMage/ext-boost
|
||||||
|
cd ..
|
@ -3,6 +3,12 @@
|
|||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install \
|
||||||
|
gcc-${GCC_VERSION} \
|
||||||
|
g++-${GCC_VERSION} \
|
||||||
|
ninja-build
|
||||||
|
|
||||||
# TODO: This isn't ideal.
|
# TODO: This isn't ideal.
|
||||||
cd externals
|
cd externals
|
||||||
git clone https://github.com/MerryMage/ext-boost
|
git clone https://github.com/MerryMage/ext-boost
|
||||||
|
10
.travis/build-x86_64-windows/build.sh
Normal file
10
.travis/build-x86_64-windows/build.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake .. -DBoost_INCLUDE_DIRS=${PWD}/../externals/ext-boost -DCMAKE_BUILD_TYPE=Release -G Ninja
|
||||||
|
ninja
|
||||||
|
|
||||||
|
./tests/dynarmic_tests --durations yes
|
9
.travis/build-x86_64-windows/deps.sh
Normal file
9
.travis/build-x86_64-windows/deps.sh
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
# TODO: This isn't ideal.
|
||||||
|
cd externals
|
||||||
|
git clone https://github.com/MerryMage/ext-boost
|
||||||
|
cd ..
|
Loading…
x
Reference in New Issue
Block a user