Skip to content

Commit

Permalink
Add windows Arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrNamenlos123 committed Apr 7, 2024
1 parent 38aa061 commit 2d9ae6e
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .github/actions/build-package/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,17 @@ runs:
- uses: seanmiddleditch/gha-setup-ninja@master

- uses: ilammy/msvc-dev-cmd@v1
if: contains(matrix.cfg.ARCHITECTURE, '-x64-')
if: contains(matrix.cfg.ARCHITECTURE, '-x64-msvc')
with:
arch: x64

- uses: ilammy/msvc-dev-cmd@v1
if: contains(matrix.cfg.ARCHITECTURE, '-arm64-msvc')
with:
arch: amd64_arm64

# TODO: Add Windows ARM64EC architecture

- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.32'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-assimp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ jobs:
- { os: ubuntu-20.04, triple: linux-x64-gcc9 }
- { os: ubuntu-20.04, triple: linux-armv7-gcc9 }
- { os: ubuntu-20.04, triple: linux-aarch64-gcc9 }
- { os: windows-2022, triple: windows-x64-mingw64 }
- { os: windows-2022, triple: windows-x64-msvc }
- { os: windows-2022, triple: windows-arm64-msvc }
- { os: windows-2022, triple: windows-x64-mingw64 }

steps:
- name: Checkout repository
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-freeimage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ jobs:
- { os: ubuntu-20.04, triple: linux-x64-gcc9 }
- { os: ubuntu-20.04, triple: linux-armv7-gcc9 }
- { os: ubuntu-20.04, triple: linux-aarch64-gcc9 }
- { os: windows-2022, triple: windows-x64-mingw64 }
- { os: windows-2022, triple: windows-x64-msvc }
- { os: windows-2022, triple: windows-arm64-msvc }
- { os: windows-2022, triple: windows-x64-mingw64 }

steps:
- name: Checkout repository
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-libcurl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ jobs:
- { os: ubuntu-20.04, triple: linux-x64-gcc9 }
- { os: ubuntu-20.04, triple: linux-armv7-gcc9 }
- { os: ubuntu-20.04, triple: linux-aarch64-gcc9 }
- { os: windows-2022, triple: windows-x64-mingw64 }
- { os: windows-2022, triple: windows-x64-msvc }
- { os: windows-2022, triple: windows-arm64-msvc }
- { os: windows-2022, triple: windows-x64-mingw64 }

steps:
- name: Checkout repository
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-mbedtls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ jobs:
- { os: ubuntu-20.04, triple: linux-x64-gcc9 }
- { os: ubuntu-20.04, triple: linux-armv7-gcc9 }
- { os: ubuntu-20.04, triple: linux-aarch64-gcc9 }
- { os: windows-2022, triple: windows-x64-mingw64 }
- { os: windows-2022, triple: windows-x64-msvc }
- { os: windows-2022, triple: windows-arm64-msvc }
- { os: windows-2022, triple: windows-x64-mingw64 }

steps:
- name: Checkout repository
Expand Down
6 changes: 6 additions & 0 deletions toolchains/windows-arm64-msvc.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
set (CMAKE_SYSTEM_NAME Windows)

set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set (CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)

0 comments on commit 2d9ae6e

Please sign in to comment.