Skip to content

Add Arm64 Windows CI support, CMake #397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/arm64_windows_cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# ref: https://github.com/actions/runner-images
Copy link
Collaborator

@Mizux Mizux May 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name: Arm64 Windows CMake

on:
push:
pull_request:
schedule:
# min hours day(month) month day(week)
- cron: '0 0 7,22 * *'
Copy link
Collaborator

@Mizux Mizux May 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


jobs:
# Building using the github runner environement directly.
make:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please rename it cmake.

runs-on: windows-11-arm
env:
CTEST_OUTPUT_ON_FAILURE: 1
steps:
- uses: actions/checkout@v4
- name: Configure
run: cmake -S. -Bbuild -G "Visual Studio 17 2022" -A ARM64 -DCMAKE_CONFIGURATION_TYPES=Release
- name: Build
run: cmake --build build --config Release --target ALL_BUILD -- /maxcpucount
- name: Test
run: cmake --build build --config Release --target RUN_TESTS -- /maxcpucount
- name: Install
run: cmake --build build --config Release --target INSTALL -- /maxcpucount
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ set(PROCESSOR_IS_S390X FALSE)
set(PROCESSOR_IS_RISCV FALSE)
set(PROCESSOR_IS_LOONGARCH FALSE)

if(CMAKE_SYSTEM_PROCESSOR MATCHES "^mips")
if (CMAKE_SYSTEM_NAME MATCHES "^Windows" AND CMAKE_C_COMPILER_ARCHITECTURE_ID STREQUAL "ARM64")
set(PROCESSOR_IS_AARCH64 TRUE)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^mips")
set(PROCESSOR_IS_MIPS TRUE)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "(^aarch64)|(^arm64)|(^ARM64)")
set(PROCESSOR_IS_AARCH64 TRUE)
Expand Down
Loading