Skip to content

Commit

Permalink
Add ARM build on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroMemes committed Oct 1, 2024
1 parent 3a44c2f commit 0560219
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,23 @@ jobs:
windows:
strategy:
matrix:
target: [ Win32, x64 ]
target: [ Win32, x64, ARM, ARM64 ]
toolset: [ v143, ClangCL ]
cxx_standard: [ 20, 23 ]
include:
- target: Win32
vcvars: vcvars32
- target: x64
vcvars: vcvars64
- target: ARM
vcvars: vcvarsamd64_arm
- target: ARM64
vcvars: vcvarsamd64_arm64
exclude:
- toolset: ClangCL
target: ARM
- toolset: ClangCL
target: ARM64
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -69,8 +83,9 @@ jobs:
run: cmake --build ${{github.workspace}}/build -j 4

- name: Test
if: ${{!startsWith(matrix.target, 'ARM')}}
working-directory: ${{github.workspace}}/build
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\${{matrix.target == 'Win32' && 'vcvars32' || 'vcvars64'}}.bat"
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\${{matrix.vcvars}}.bat"
ctest -C ${{env.BUILD_TYPE}} -R libhat_test_.*

0 comments on commit 0560219

Please sign in to comment.