Skip to content

Commit

Permalink
Also build for ARM64
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Apr 19, 2024
1 parent a4fc1b6 commit 3c34e82
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/windows-alt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,27 +71,40 @@ jobs:
run: cmake --build ./build --target run_tests
clang-cl:
if: github.repository_owner == 'aws'
strategy:
fail-fast: false
matrix:
target:
- x64
- x64_arm64
runs-on: windows-latest
steps:
- name: Install NASM
- if: ${{ matrix.target == 'x64' }}
name: Install NASM
uses: ilammy/[email protected]
- name: Checkout
uses: actions/checkout@v4
- uses: TheMrMilchmann/setup-msvc-dev@v3
with:
arch: x64
arch: ${{ matrix.target }}
- name: Remove wrong clang-cl.exe
run: |
rm "C:/Program Files/LLVM/bin/clang-cl.exe"
- name: Setup CMake
uses: threeal/[email protected]
with:
generator: Ninja
c-compiler: clang-cl
cxx-compiler: clang-cl
options: |
CMAKE_CROSSCOMPILING=${{ ((matrix.target == 'x64') && '0') || '1' }} \
CMAKE_SYSTEM_NAME=Windows \
CMAKE_SYSTEM_PROCESSOR=x86_64 \
CMAKE_SYSTEM_PROCESSOR=${{ ((matrix.target == 'x64') && 'x86_64') || 'ARM64' }} \
CMAKE_MAKE_PROGRAM=ninja.exe \
CMAKE_BUILD_TYPE=Release \
CMAKE_GENERATOR_PLATFORM=${{ ((matrix.target == 'x64') && 'x86_64') || 'ARM64' }}
- name: Build Project
run: cmake --build ./build --target all
- name: Run tests
- if: ${{ matrix.target == 'x64' }}
name: Run tests
run: cmake --build ./build --target run_tests

0 comments on commit 3c34e82

Please sign in to comment.