|
| 1 | +# Copyright (c) Microsoft Corporation. |
| 2 | +# Licensed under the MIT License. |
| 3 | +# |
| 4 | +# http://go.microsoft.com/fwlink/?LinkID=615560 |
| 5 | + |
| 6 | +name: 'MSBuild (Extended)' |
| 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/* |
| 18 | + |
| 19 | +permissions: |
| 20 | + contents: read |
| 21 | + |
| 22 | +jobs: |
| 23 | + build: |
| 24 | + runs-on: windows-${{ matrix.vs }} |
| 25 | + |
| 26 | + strategy: |
| 27 | + fail-fast: false |
| 28 | + |
| 29 | + matrix: |
| 30 | + include: |
| 31 | + - vs: 2019 |
| 32 | + platform: x86 |
| 33 | + build_type: 'AVX Debug' |
| 34 | + - vs: 2019 |
| 35 | + platform: x64 |
| 36 | + build_type: 'AVX Debug' |
| 37 | + - vs: 2022 |
| 38 | + platform: x86 |
| 39 | + build_type: 'AVX Debug' |
| 40 | + - vs: 2022 |
| 41 | + platform: x64 |
| 42 | + build_type: 'AVX Debug' |
| 43 | + - vs: 2019 |
| 44 | + platform: x86 |
| 45 | + build_type: 'AVX2 Debug' |
| 46 | + - vs: 2019 |
| 47 | + platform: x64 |
| 48 | + build_type: 'AVX2 Debug' |
| 49 | + - vs: 2022 |
| 50 | + platform: x86 |
| 51 | + build_type: 'AVX2 Debug' |
| 52 | + - vs: 2022 |
| 53 | + platform: x64 |
| 54 | + build_type: 'AVX2 Debug' |
| 55 | + - vs: 2019 |
| 56 | + platform: x86 |
| 57 | + build_type: 'x87 Debug' |
| 58 | + - vs: 2022 |
| 59 | + platform: x86 |
| 60 | + build_type: 'x87 Debug' |
| 61 | + - vs: 2019 |
| 62 | + platform: x86 |
| 63 | + build_type: 'AVX Release' |
| 64 | + - vs: 2019 |
| 65 | + platform: x64 |
| 66 | + build_type: 'AVX Release' |
| 67 | + - vs: 2022 |
| 68 | + platform: x86 |
| 69 | + build_type: 'AVX Release' |
| 70 | + - vs: 2022 |
| 71 | + platform: x64 |
| 72 | + build_type: 'AVX Release' |
| 73 | + - vs: 2019 |
| 74 | + platform: x86 |
| 75 | + build_type: 'AVX2 Release' |
| 76 | + - vs: 2019 |
| 77 | + platform: x64 |
| 78 | + build_type: 'AVX2 Release' |
| 79 | + - vs: 2022 |
| 80 | + platform: x86 |
| 81 | + build_type: 'AVX2 Release' |
| 82 | + - vs: 2022 |
| 83 | + platform: x64 |
| 84 | + build_type: 'AVX2 Release' |
| 85 | + - vs: 2019 |
| 86 | + platform: x86 |
| 87 | + build_type: 'x87 Release' |
| 88 | + - vs: 2022 |
| 89 | + platform: x86 |
| 90 | + build_type: 'x87 Release' |
| 91 | + |
| 92 | + steps: |
| 93 | + - uses: actions/checkout@v4 |
| 94 | + |
| 95 | + - name: Clone test repository |
| 96 | + uses: actions/checkout@v4 |
| 97 | + with: |
| 98 | + repository: walbourn/directxmathtest |
| 99 | + path: Tests |
| 100 | + ref: main |
| 101 | + |
| 102 | + - name: Add MSBuild to PATH |
| 103 | + uses: microsoft/setup-msbuild@v2 |
| 104 | + |
| 105 | + - name: Build math3 |
| 106 | + working-directory: ${{ github.workspace }}/Tests/math3 |
| 107 | + run: msbuild /m /p:Configuration="${{ matrix.build_type }}" /p:Platform=${{ matrix.platform }} ./math3_${{ matrix.vs }}.sln |
| 108 | + |
| 109 | + - if: (matrix.build_type == 'Debug') || (matrix.build_type == 'Release') |
| 110 | + name: Build shmath |
| 111 | + working-directory: ${{ github.workspace }}/Tests/shmath |
| 112 | + run: msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} ./shmath_${{ matrix.vs }}.sln |
| 113 | + |
| 114 | + - if: (matrix.build_type == 'Debug') || (matrix.build_type == 'Release') |
| 115 | + name: Build xdsp |
| 116 | + working-directory: ${{ github.workspace }}/Tests/xdsp |
| 117 | + run: msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} ./XDSPTest_${{ matrix.vs }}.sln |
0 commit comments