|
1 |
| -# Copyright (c) Microsoft Corporation. |
2 |
| -# Licensed under the MIT License. |
3 |
| -# |
4 |
| -# http://go.microsoft.com/fwlink/?LinkId=248929 |
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/*.json |
18 |
| - - build/*.props |
19 |
| - - build/*.ps1 |
20 |
| - - build/*.targets |
21 |
| - pull_request: |
22 |
| - branches: "main" |
23 |
| - paths-ignore: |
24 |
| - - '*.md' |
25 |
| - - LICENSE |
26 |
| - - '.azuredevops/**' |
27 |
| - - '.nuget/*' |
28 |
| - - build/*.cmd |
29 |
| - - build/*.json |
30 |
| - - build/*.props |
31 |
| - - build/*.ps1 |
32 |
| - - build/*.targets |
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] |
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 }} |
| 1 | +# Copyright (c) Microsoft Corporation. |
| 2 | +# Licensed under the MIT License. |
| 3 | +# |
| 4 | +# http://go.microsoft.com/fwlink/?LinkId=248929 |
| 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/*.json |
| 18 | + - build/*.props |
| 19 | + - build/*.ps1 |
| 20 | + - build/*.targets |
| 21 | + pull_request: |
| 22 | + branches: "main" |
| 23 | + paths-ignore: |
| 24 | + - '*.md' |
| 25 | + - LICENSE |
| 26 | + - '.azuredevops/**' |
| 27 | + - '.nuget/*' |
| 28 | + - build/*.cmd |
| 29 | + - build/*.json |
| 30 | + - build/*.props |
| 31 | + - build/*.ps1 |
| 32 | + - build/*.targets |
| 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] |
| 46 | + |
| 47 | + steps: |
| 48 | + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 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