Skip to content

Commit 1aae025

Browse files
committed
CI: build and run tests for Windows ARM on Windows ARM runner
1 parent e90ad23 commit 1aae025

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/windows.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ on:
88
jobs:
99
build_libebml:
1010
name: libebml ${{ matrix.arch.name }} ${{ matrix.config }}
11-
runs-on: windows-latest
11+
runs-on: ${{ matrix.arch.runner }}
1212
strategy:
1313
fail-fast: false
1414
matrix:
1515
config: [Debug, Release]
1616
arch: [
17-
{ "name": "x64", "option": "x64", "env": "AMD64"},
18-
{ "name": "x86", "option": "win32", "env": "AMD64"},
19-
{ "name": "arm64", "option": "arm64", "env": "ARM64"},
17+
{ "name": "x64", "option": "x64", "runner": "windows-latest"},
18+
{ "name": "x86", "option": "win32", "runner": "windows-latest"},
19+
{ "name": "arm64", "option": "arm64", "runner": "windows-11-arm"},
2020
]
2121
env:
2222
CMAKE_OPTIONS: -DDEV_MODE=ON -DCMAKE_CXX_FLAGS_INIT="-DWINVER=0x0501" -DBUILD_TESTING=ON
@@ -34,7 +34,4 @@ jobs:
3434
run: cmake --install _build --config ${{ matrix.config }} --prefix ${GITHUB_WORKSPACE}/_built
3535

3636
- name: Run tests
37-
run: |
38-
if ($env:PROCESSOR_ARCHITECTURE -match "${{ matrix.arch.env }}") {
39-
ctest --test-dir _build --build-config ${{ matrix.config }}
40-
}
37+
run: ctest --test-dir _build --build-config ${{ matrix.config }}

0 commit comments

Comments
 (0)