|
1 | | -# Copyright (c) Microsoft Corporation. |
2 | | -# Licensed under the MIT License. |
3 | | -# |
4 | | -# http://go.microsoft.com/fwlink/?LinkID=615560 |
5 | | - |
6 | | -name: 'CTest (arm64)' |
7 | | - |
8 | | -on: |
9 | | - push: |
10 | | - branches: "main" |
11 | | - paths-ignore: |
12 | | - - '*.md' |
13 | | - - LICENSE |
14 | | - - '.azuredevops/**' |
15 | | - - '.nuget/*' |
16 | | - - build/*.ps1 |
17 | | - pull_request: |
18 | | - branches: "main" |
19 | | - paths-ignore: |
20 | | - - '*.md' |
21 | | - - LICENSE |
22 | | - - '.azuredevops/**' |
23 | | - - '.nuget/*' |
24 | | - - build/*.ps1 |
25 | | - |
26 | | -permissions: |
27 | | - contents: read |
28 | | - |
29 | | -jobs: |
30 | | - build: |
31 | | - runs-on: windows-11-arm |
32 | | - timeout-minutes: 20 |
33 | | - |
34 | | - strategy: |
35 | | - fail-fast: false |
36 | | - |
37 | | - matrix: |
38 | | - build_type: [arm64-Release] |
39 | | - |
40 | | - steps: |
41 | | - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
42 | | - |
43 | | - - name: Clone test repository |
44 | | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
45 | | - with: |
46 | | - repository: walbourn/directxmathtest |
47 | | - path: Tests |
48 | | - ref: main |
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 }} -DBUILD_TESTING=ON |
60 | | - |
61 | | - - name: 'Build' |
62 | | - working-directory: ${{ github.workspace }} |
63 | | - run: cmake --build out/build/${{ matrix.build_type }} |
64 | | - |
65 | | - - timeout-minutes: 10 |
66 | | - name: 'Test' |
67 | | - working-directory: ${{ github.workspace }} |
68 | | - run: ctest --preset=${{ matrix.build_type }} --output-on-failure |
| 1 | +# Copyright (c) Microsoft Corporation. |
| 2 | +# Licensed under the MIT License. |
| 3 | +# |
| 4 | +# http://go.microsoft.com/fwlink/?LinkID=615560 |
| 5 | + |
| 6 | +name: 'CTest (arm64)' |
| 7 | + |
| 8 | +on: |
| 9 | + push: |
| 10 | + branches: "main" |
| 11 | + paths-ignore: |
| 12 | + - '*.md' |
| 13 | + - LICENSE |
| 14 | + - '.azuredevops/**' |
| 15 | + - '.nuget/*' |
| 16 | + - build/*.ps1 |
| 17 | + pull_request: |
| 18 | + branches: "main" |
| 19 | + paths-ignore: |
| 20 | + - '*.md' |
| 21 | + - LICENSE |
| 22 | + - '.azuredevops/**' |
| 23 | + - '.nuget/*' |
| 24 | + - build/*.ps1 |
| 25 | + |
| 26 | +permissions: |
| 27 | + contents: read |
| 28 | + |
| 29 | +jobs: |
| 30 | + build: |
| 31 | + runs-on: windows-11-arm |
| 32 | + timeout-minutes: 20 |
| 33 | + |
| 34 | + strategy: |
| 35 | + fail-fast: false |
| 36 | + |
| 37 | + matrix: |
| 38 | + build_type: [arm64-Release] |
| 39 | + |
| 40 | + steps: |
| 41 | + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 42 | + |
| 43 | + - name: Clone test repository |
| 44 | + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 45 | + with: |
| 46 | + repository: walbourn/directxmathtest |
| 47 | + path: Tests |
| 48 | + ref: main |
| 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 }} -DBUILD_TESTING=ON |
| 60 | + |
| 61 | + - name: 'Build' |
| 62 | + working-directory: ${{ github.workspace }} |
| 63 | + run: cmake --build out/build/${{ matrix.build_type }} |
| 64 | + |
| 65 | + - timeout-minutes: 10 |
| 66 | + name: 'Test' |
| 67 | + working-directory: ${{ github.workspace }} |
| 68 | + run: ctest --preset=${{ matrix.build_type }} --output-on-failure |
0 commit comments