Migrate to github actions

This commit is contained in:
SachinVin 2021-05-06 00:17:42 +05:30
parent a0d50b138e
commit 581f50a903
7 changed files with 135 additions and 1 deletions

90
.github/workflows/ci.yml vendored Normal file
View 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
View File

@ -1,6 +1,5 @@
# Built files
build/
build-*/
docs/Doxygen/
.vs/
# Generated files

View 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

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

View File

@ -3,6 +3,12 @@
set -e
set -x
sudo apt-get update
sudo apt-get install \
gcc-${GCC_VERSION} \
g++-${GCC_VERSION} \
ninja-build
# TODO: This isn't ideal.
cd externals
git clone https://github.com/MerryMage/ext-boost

View 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

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