diff options
author | Merry <[email protected]> | 2023-01-06 14:29:28 +0000 |
---|---|---|
committer | Merry <[email protected]> | 2023-01-06 14:32:43 +0000 |
commit | 047561298ae49fc6a41b55bfef76cd3ad09daf0d (patch) | |
tree | 459731772af3efe71a495d1349fc306baed023ba /.github | |
parent | 6b41b5be07d51d8b1e2103782bb28d4873a3ebfa (diff) | |
download | dynarmic-047561298ae49fc6a41b55bfef76cd3ad09daf0d.tar.gz dynarmic-047561298ae49fc6a41b55bfef76cd3ad09daf0d.zip |
github: Test multi-architecture build
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/multiarch.yml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/.github/workflows/multiarch.yml b/.github/workflows/multiarch.yml new file mode 100644 index 00000000..34f033f5 --- /dev/null +++ b/.github/workflows/multiarch.yml @@ -0,0 +1,46 @@ +name: multiarch + +on: [ push, pull_request ] + +env: + BUILD_TYPE: Release + +jobs: + build: + strategy: + fail-fast: false + + runs-on: macos-latest + + steps: + + - name: Install build dependencies + run: | + brew install ninja + echo "/usr/local/opt/llvm/bin" >> $GITHUB_PATH + + - name: Checkout dynarmic repo + uses: actions/checkout@v2 + + - name: Checkout ext-boost repo + uses: actions/checkout@v2 + with: + repository: MerryMage/ext-boost + path: externals/ext-boost + + - name: Configure CMake + run: > + cmake + -B ${{github.workspace}}/build + -DBOOST_INCLUDEDIR=${{github.workspace}}/externals/ext-boost + -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" + -G Ninja + + - name: Build + working-directory: ${{github.workspace}}/build + run: cmake --build . --config Release + + - name: Test + working-directory: ${{github.workspace}}/build + run: ctest --extra-verbose -C ${{env.BUILD_TYPE}} |