github: Use GCC 10 on Ubuntu
This commit is contained in:
parent
a4daad6336
commit
81536e4630
1 changed files with 77 additions and 60 deletions
137
.github/workflows/build-and-test.yml
vendored
137
.github/workflows/build-and-test.yml
vendored
|
@ -1,6 +1,6 @@
|
||||||
name: Build and Test
|
name: Build and Test
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [ push, pull_request ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BUILD_TYPE: Release
|
BUILD_TYPE: Release
|
||||||
|
@ -9,76 +9,93 @@ jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest, ubuntu-latest, macos-latest]
|
os: [ windows-latest, ubuntu-latest, macos-latest ]
|
||||||
cpu_detection: [0, 1]
|
cpu_detection: [ 0, 1 ]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
if: ${{matrix.os == 'ubuntu-latest'}}
|
if: ${{matrix.os == 'ubuntu-latest'}}
|
||||||
run: sudo apt-get install llvm ninja-build
|
run: sudo apt-get install llvm ninja-build
|
||||||
|
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
if: ${{matrix.os == 'macos-latest'}}
|
if: ${{matrix.os == 'macos-latest'}}
|
||||||
run: |
|
run: |
|
||||||
brew install llvm ninja
|
brew install llvm ninja
|
||||||
echo "/usr/local/opt/llvm/bin" >> $GITHUB_PATH
|
echo "/usr/local/opt/llvm/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Checkout dynarmic repo
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Checkout ext-boost repo
|
- name: Checkout dynarmic repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
|
||||||
repository: MerryMage/ext-boost
|
|
||||||
path: externals/ext-boost
|
|
||||||
|
|
||||||
- name: Checkout unicorn repo
|
- name: Checkout ext-boost repo
|
||||||
if: ${{matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'}}
|
uses: actions/checkout@v2
|
||||||
uses: actions/checkout@v2
|
with:
|
||||||
with:
|
repository: MerryMage/ext-boost
|
||||||
repository: MerryMage/unicorn
|
path: externals/ext-boost
|
||||||
path: externals/unicorn
|
|
||||||
|
|
||||||
- name: Build unicorn
|
- name: Checkout unicorn repo
|
||||||
if: ${{matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'}}
|
if: ${{matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'}}
|
||||||
working-directory: externals/unicorn
|
uses: actions/checkout@v2
|
||||||
run: UNICORN_ARCHS=aarch64,arm ./make.sh
|
with:
|
||||||
|
repository: MerryMage/unicorn
|
||||||
|
path: externals/unicorn
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Build unicorn
|
||||||
if: ${{matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'}}
|
if: ${{matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'}}
|
||||||
run: >
|
working-directory: externals/unicorn
|
||||||
cmake
|
run: UNICORN_ARCHS=aarch64,arm ./make.sh
|
||||||
-B ${{github.workspace}}/build
|
|
||||||
-DBoost_INCLUDE_DIRS=${{github.workspace}}/externals/ext-boost
|
|
||||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
|
||||||
-DDYNARMIC_ENABLE_CPU_FEATURE_DETECTION=${{matrix.cpu_detection}}
|
|
||||||
-DDYNARMIC_TESTS_USE_UNICORN=1
|
|
||||||
-DDYNARMIC_USE_LLVM=1
|
|
||||||
-DLIBUNICORN_INCLUDE_DIR=${{github.workspace}}/externals/unicorn/include
|
|
||||||
-DLIBUNICORN_LIBRARY=${{github.workspace}}/externals/unicorn/libunicorn.a
|
|
||||||
-G Ninja
|
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
if: ${{matrix.os == 'windows-latest'}}
|
if: ${{matrix.os == 'ubuntu-latest'}}
|
||||||
run: >
|
env:
|
||||||
cmake
|
CC: gcc-10
|
||||||
-B ${{github.workspace}}/build
|
CXX: g++-10
|
||||||
-DBoost_INCLUDE_DIRS=${{github.workspace}}/externals/ext-boost
|
run: >
|
||||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
cmake
|
||||||
-DDYNARMIC_ENABLE_CPU_FEATURE_DETECTION=${{matrix.cpu_detection}}
|
-B ${{github.workspace}}/build
|
||||||
-G "Visual Studio 17 2022"
|
-DBoost_INCLUDE_DIRS=${{github.workspace}}/externals/ext-boost
|
||||||
-A x64
|
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
|
-DDYNARMIC_ENABLE_CPU_FEATURE_DETECTION=${{matrix.cpu_detection}}
|
||||||
|
-DDYNARMIC_TESTS_USE_UNICORN=1
|
||||||
|
-DDYNARMIC_USE_LLVM=1
|
||||||
|
-DLIBUNICORN_INCLUDE_DIR=${{github.workspace}}/externals/unicorn/include
|
||||||
|
-DLIBUNICORN_LIBRARY=${{github.workspace}}/externals/unicorn/libunicorn.a
|
||||||
|
-G Ninja
|
||||||
|
|
||||||
- name: Build
|
- name: Configure CMake
|
||||||
working-directory: ${{github.workspace}}/build
|
if: ${{matrix.os == 'macos-latest'}}
|
||||||
run: cmake --build . --config Release
|
run: >
|
||||||
|
cmake
|
||||||
|
-B ${{github.workspace}}/build
|
||||||
|
-DBoost_INCLUDE_DIRS=${{github.workspace}}/externals/ext-boost
|
||||||
|
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
|
-DDYNARMIC_ENABLE_CPU_FEATURE_DETECTION=${{matrix.cpu_detection}}
|
||||||
|
-DDYNARMIC_TESTS_USE_UNICORN=1
|
||||||
|
-DDYNARMIC_USE_LLVM=1
|
||||||
|
-DLIBUNICORN_INCLUDE_DIR=${{github.workspace}}/externals/unicorn/include
|
||||||
|
-DLIBUNICORN_LIBRARY=${{github.workspace}}/externals/unicorn/libunicorn.a
|
||||||
|
-G Ninja
|
||||||
|
|
||||||
- name: Test
|
- name: Configure CMake
|
||||||
env:
|
if: ${{matrix.os == 'windows-latest'}}
|
||||||
DYLD_FALLBACK_LIBRARY_PATH: ${{github.workspace}}/externals/unicorn
|
run: >
|
||||||
working-directory: ${{github.workspace}}/build
|
cmake
|
||||||
run: ctest --extra-verbose -C ${{env.BUILD_TYPE}}
|
-B ${{github.workspace}}/build
|
||||||
|
-DBoost_INCLUDE_DIRS=${{github.workspace}}/externals/ext-boost
|
||||||
|
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
|
-DDYNARMIC_ENABLE_CPU_FEATURE_DETECTION=${{matrix.cpu_detection}}
|
||||||
|
-G "Visual Studio 17 2022"
|
||||||
|
-A x64
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{github.workspace}}/build
|
||||||
|
run: cmake --build . --config Release
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
env:
|
||||||
|
DYLD_FALLBACK_LIBRARY_PATH: ${{github.workspace}}/externals/unicorn
|
||||||
|
working-directory: ${{github.workspace}}/build
|
||||||
|
run: ctest --extra-verbose -C ${{env.BUILD_TYPE}}
|
||||||
|
|
Loading…
Reference in a new issue