github: Test arm64 backend
This commit is contained in:
parent
129af4f6b4
commit
32e54481e7
1 changed files with 30 additions and 7 deletions
37
.github/workflows/aarch64.yml
vendored
37
.github/workflows/aarch64.yml
vendored
|
@ -28,19 +28,22 @@ jobs:
|
||||||
- name: Checkout dynarmic repo
|
- name: Checkout dynarmic repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Ccache
|
||||||
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
|
||||||
- name: Checkout ext-boost repo
|
- name: Checkout ext-boost repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: MerryMage/ext-boost
|
repository: MerryMage/ext-boost
|
||||||
path: externals/ext-boost
|
path: externals/ext-boost
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake for AArch64
|
||||||
env:
|
env:
|
||||||
CC: aarch64-linux-gnu-gcc-10
|
CC: aarch64-linux-gnu-gcc-10
|
||||||
CXX: aarch64-linux-gnu-g++-10
|
CXX: aarch64-linux-gnu-g++-10
|
||||||
run: >
|
run: >
|
||||||
cmake
|
cmake
|
||||||
-B ${{github.workspace}}/build
|
-B ${{github.workspace}}/build-arm64
|
||||||
-DBoost_INCLUDE_DIRS=${{github.workspace}}/externals/ext-boost
|
-DBoost_INCLUDE_DIRS=${{github.workspace}}/externals/ext-boost
|
||||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
-DDYNARMIC_TESTS_USE_UNICORN=0
|
-DDYNARMIC_TESTS_USE_UNICORN=0
|
||||||
|
@ -48,10 +51,30 @@ jobs:
|
||||||
-DDYNARMIC_FRONTENDS=A32
|
-DDYNARMIC_FRONTENDS=A32
|
||||||
-G Ninja
|
-G Ninja
|
||||||
|
|
||||||
- name: Build
|
- name: Build AArch64
|
||||||
working-directory: ${{github.workspace}}/build
|
working-directory: ${{github.workspace}}/build-arm64
|
||||||
run: cmake --build . --config Release
|
run: cmake --build . --config Release
|
||||||
|
|
||||||
#- name: Test
|
- name: Configure CMake for x86_64
|
||||||
# working-directory: ${{github.workspace}}/build
|
env:
|
||||||
# run: qemu-aarch64 -L /usr/aarch64-linux-gnu ./tests/dynarmic_tests -d yes
|
CC: gcc-10
|
||||||
|
CXX: g++-10
|
||||||
|
run: >
|
||||||
|
cmake
|
||||||
|
-B ${{github.workspace}}/build-x64
|
||||||
|
-DBoost_INCLUDE_DIRS=${{github.workspace}}/externals/ext-boost
|
||||||
|
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache
|
||||||
|
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||||
|
-DDYNARMIC_FRONTENDS=A32
|
||||||
|
-DDYNARMIC_TESTS_USE_UNICORN=0
|
||||||
|
-DDYNARMIC_USE_LLVM=0
|
||||||
|
-G Ninja
|
||||||
|
|
||||||
|
- name: Build x86_64
|
||||||
|
working-directory: ${{github.workspace}}/build-x64
|
||||||
|
run: cmake --build . --config Release
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{github.workspace}}
|
||||||
|
run: diff <(qemu-aarch64 -L /usr/aarch64-linux-gnu ./build-arm64/tests/dynarmic_test_generator) <(./build-x64/tests/dynarmic_test_generator)
|
||||||
|
|
Loading…
Reference in a new issue