Skip to content

Commit 244ce8a

Browse files
committed
Add ARM64 GHA
1 parent 870a223 commit 244ce8a

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

.github/workflows/arm64.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
#
4+
# https://go.microsoft.com/fwlink/?LinkID=324981
5+
6+
name: 'CMake (Windows on ARM64)'
7+
8+
on:
9+
push:
10+
branches: "main"
11+
paths-ignore:
12+
- '*.md'
13+
- LICENSE
14+
- '.azuredevops/**'
15+
- '.nuget/*'
16+
- build/*.cmd
17+
- build/*.props
18+
- build/*.ps1
19+
- build/*.targets
20+
- build/*.xvd
21+
pull_request:
22+
branches: "main"
23+
paths-ignore:
24+
- '*.md'
25+
- LICENSE
26+
- '.azuredevops/**'
27+
- '.nuget/*'
28+
- build/*.cmd
29+
- build/*.props
30+
- build/*.ps1
31+
- build/*.targets
32+
- build/*.xvd
33+
34+
permissions:
35+
contents: read
36+
37+
jobs:
38+
build:
39+
runs-on: windows-11-arm
40+
41+
strategy:
42+
fail-fast: false
43+
44+
matrix:
45+
build_type: [arm64-Debug, arm64-Release, arm64-Debug-UWP, arm64-Release-UWP, arm64-Debug-Clang, arm64-Release-Clang, arm64-Debug-UWP-Clang, arm64-Release-UWP-Clang]
46+
47+
steps:
48+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
49+
50+
- name: 'Install Ninja'
51+
run: choco install ninja
52+
53+
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
54+
with:
55+
arch: arm64
56+
57+
- name: 'Configure CMake'
58+
working-directory: ${{ github.workspace }}
59+
run: cmake --preset=${{ matrix.build_type }}
60+
61+
- name: 'Build'
62+
working-directory: ${{ github.workspace }}
63+
run: cmake --build out\build\${{ matrix.build_type }}
64+
65+
- name: 'Clean up'
66+
working-directory: ${{ github.workspace }}
67+
run: Remove-Item -Path out -Recurse -Force
68+
69+
- name: 'Configure CMake (DLL)'
70+
working-directory: ${{ github.workspace }}
71+
run: cmake --preset=${{ matrix.build_type }} -DBUILD_SHARED_LIBS=ON
72+
73+
- name: 'Build (DLL)'
74+
working-directory: ${{ github.workspace }}
75+
run: cmake --build out\build\${{ matrix.build_type }}

0 commit comments

Comments
 (0)