Skip to content

Commit 21e0cee

Browse files
lavenzgfacebook-github-bot
authored andcommitted
Add arm64 Windows test in Github CI (facebook#1892)
Summary: Boost.Context does not have ARM64 support before this PR: boostorg/context#315 A solution is to use winfib on ARM64. Differential Revision: D91922972
1 parent 12d98b7 commit 21e0cee

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,17 @@ jobs:
158158
strategy:
159159
fail-fast: false
160160
matrix:
161-
os: [windows-2025]
161+
os: [windows-2025, windows-11-arm]
162162
build_type: [Debug, Release]
163+
target_cpu: [x86_64, arm64]
164+
cmake_flags: ["", "-DBOOST_CONTEXT_IMPLEMENTATION=winfib"]
165+
exclude:
166+
- os: windows-11-arm
167+
target_cpu: x86_64
168+
cmake_flags: ""
169+
- os: windows-2025
170+
target_cpu: arm64
171+
cmake_flags: "-DBOOST_CONTEXT_IMPLEMENTATION=winfib"
163172
runs-on: ${{ matrix.os }}
164173
steps:
165174
- uses: actions/checkout@v4.1.0
@@ -183,7 +192,8 @@ jobs:
183192
# Use system version 10.0.15063 or newer for VS2022 compatibility and built-in ICU
184193
cmake -S hermes -B build -G "Visual Studio 17 2022" \
185194
-DCMAKE_SYSTEM_NAME=Windows -DCMAKE_SYSTEM_VERSION=10.0.15063 \
186-
-DJSI_UNSTABLE=ON
195+
-DCMAKE_SYSTEM_PROCESSOR=${{ matrix.target_cpu }} \
196+
${{ matrix.cmake_flags }} -DJSI_UNSTABLE=ON
187197
188198
# Build using CMake
189199
cmake --build build --config ${{ matrix.build_type }} --target hermes -- \

0 commit comments

Comments
 (0)