|
| 1 | +# Copyright (c) Microsoft Corporation. |
| 2 | +# Licensed under the MIT License. |
| 3 | +# |
| 4 | +# http://go.microsoft.com/fwlink/?LinkID=615560 |
| 5 | + |
| 6 | +name: 'CMake (SHMath)' |
| 7 | + |
| 8 | +on: |
| 9 | + push: |
| 10 | + branches: [ "main" ] |
| 11 | + pull_request: |
| 12 | + branches: [ "main" ] |
| 13 | + paths-ignore: |
| 14 | + - '*.md' |
| 15 | + - LICENSE |
| 16 | + - '.nuget/*' |
| 17 | + - build/*.ps1 |
| 18 | + - build/*.yml |
| 19 | + |
| 20 | +permissions: |
| 21 | + contents: read |
| 22 | + |
| 23 | +jobs: |
| 24 | + build: |
| 25 | + runs-on: ${{ matrix.os }} |
| 26 | + |
| 27 | + strategy: |
| 28 | + fail-fast: false |
| 29 | + |
| 30 | + matrix: |
| 31 | + os: [windows-2019, windows-2022] |
| 32 | + build_type: [x64-Debug, x64-Release, x64-Debug-Clang, x64-Release-Clang] |
| 33 | + arch: [amd64] |
| 34 | + include: |
| 35 | + - os: windows-2019 |
| 36 | + build_type: x86-Debug |
| 37 | + arch: amd64_x86 |
| 38 | + - os: windows-2019 |
| 39 | + build_type: x86-Debug-Clang |
| 40 | + arch: amd64_x86 |
| 41 | + - os: windows-2022 |
| 42 | + build_type: x86-Debug |
| 43 | + arch: amd64_x86 |
| 44 | + - os: windows-2022 |
| 45 | + build_type: x86-Release |
| 46 | + arch: amd64_x86 |
| 47 | + - os: windows-2022 |
| 48 | + build_type: arm64-Debug |
| 49 | + arch: amd64_arm64 |
| 50 | + - os: windows-2022 |
| 51 | + build_type: arm64-Release |
| 52 | + arch: amd64_arm64 |
| 53 | + - os: windows-2022 |
| 54 | + build_type: arm64ec-Debug |
| 55 | + arch: amd64_arm64 |
| 56 | + - os: windows-2022 |
| 57 | + build_type: arm64ec-Release |
| 58 | + arch: amd64_arm64 |
| 59 | + - os: windows-2022 |
| 60 | + build_type: x86-Debug-Clang |
| 61 | + arch: amd64_x86 |
| 62 | + - os: windows-2022 |
| 63 | + build_type: x86-Release-Clang |
| 64 | + arch: amd64_x86 |
| 65 | + - os: windows-2022 |
| 66 | + build_type: arm64-Debug-Clang |
| 67 | + arch: amd64_arm64 |
| 68 | + - os: windows-2022 |
| 69 | + build_type: arm64-Release-Clang |
| 70 | + arch: amd64_arm64 |
| 71 | + |
| 72 | + steps: |
| 73 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 74 | + |
| 75 | + - name: Clone test repository |
| 76 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 77 | + with: |
| 78 | + repository: walbourn/directxmathtest |
| 79 | + path: Tests |
| 80 | + ref: main |
| 81 | + |
| 82 | + - name: 'Install Ninja' |
| 83 | + run: choco install ninja |
| 84 | + |
| 85 | + - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 |
| 86 | + with: |
| 87 | + arch: ${{ matrix.arch }} |
| 88 | + |
| 89 | + - name: 'Configure CMake' |
| 90 | + working-directory: ${{ github.workspace }} |
| 91 | + run: cmake --preset=${{ matrix.build_type }} |
| 92 | + |
| 93 | + - name: 'Build' |
| 94 | + working-directory: ${{ github.workspace }} |
| 95 | + run: cmake --build out\build\${{ matrix.build_type }} -DBUILD_SHMATH=ON |
0 commit comments