diff options
author | Merry <[email protected]> | 2022-02-15 15:47:45 +0000 |
---|---|---|
committer | Merry <[email protected]> | 2022-02-15 15:48:13 +0000 |
commit | 8b1859d5ca2634fba8a19c0498528d6a67dd0a3e (patch) | |
tree | aa004d6184c79550e033e865d5b7b91e03f316db /.github | |
parent | 4fa646bae5e5e0d38adf68dd4a1c3957efc7a873 (diff) | |
download | dynarmic-8b1859d5ca2634fba8a19c0498528d6a67dd0a3e.tar.gz dynarmic-8b1859d5ca2634fba8a19c0498528d6a67dd0a3e.zip |
github: Add windows build, remove appveyor
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build-and-test.yml | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index ca74226e..921556bd 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -9,7 +9,7 @@ jobs: build: strategy: matrix: - os: [ubuntu-latest, macos-latest] + os: [windows-latest, ubuntu-latest, macos-latest] cpu_detection: [0, 1] fail-fast: false @@ -37,16 +37,19 @@ jobs: path: externals/ext-boost - name: Checkout unicorn repo + if: ${{matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'}} uses: actions/checkout@v2 with: repository: MerryMage/unicorn path: externals/unicorn - name: Build unicorn + if: ${{matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'}} working-directory: externals/unicorn run: UNICORN_ARCHS=aarch64,arm ./make.sh - name: Configure CMake + if: ${{matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'}} run: > cmake -B ${{github.workspace}}/build @@ -59,9 +62,20 @@ jobs: -DLIBUNICORN_LIBRARY=${{github.workspace}}/externals/unicorn/libunicorn.a -G Ninja + - name: Configure CMake + if: ${{matrix.os == 'windows-latest'}} + 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}} + -G "Visual Studio 16 2019" + -A x64 + - name: Build working-directory: ${{github.workspace}}/build - run: ninja + run: cmake --build . --config Release - name: Test env: |