Skip to content

Commit

Permalink
Split jobs for MSbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Jul 29, 2024
1 parent 259370e commit 2b9ec68
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 61 deletions.
61 changes: 0 additions & 61 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,67 +30,6 @@ jobs:
vs: [2019, 2022]
build_type: [Debug, Release, 'NI Debug', 'NI Release']
platform: [x86, x64, ARM64]
include:
- os: 2019
platform: x86
build_type: 'AVX Debug'
- os: 2019
platform: x64
build_type: 'AVX Debug'
- os: 2022
platform: x86
build_type: 'AVX Debug'
- os: 2022
platform: x64
build_type: 'AVX Debug'
- os: 2019
platform: x86
build_type: 'AVX2 Debug'
- os: 2019
platform: x64
build_type: 'AVX2 Debug'
- os: 2022
platform: x86
build_type: 'AVX2 Debug'
- os: 2022
platform: x64
build_type: 'AVX2 Debug'
- os: 2019
platform: x86
build_type: 'x87 Debug'
- os: 2022
platform: x86
build_type: 'x87 Debug'
- os: 2019
platform: x86
build_type: 'AVX Release'
- os: 2019
platform: x64
build_type: 'AVX Release'
- os: 2022
platform: x86
build_type: 'AVX Release'
- os: 2022
platform: x64
build_type: 'AVX Release'
- os: 2019
platform: x86
build_type: 'AVX2 Release'
- os: 2019
platform: x64
build_type: 'AVX2 Release'
- os: 2022
platform: x86
build_type: 'AVX2 Release'
- os: 2022
platform: x64
build_type: 'AVX2 Release'
- os: 2019
platform: x86
build_type: 'x87 Release'
- os: 2022
platform: x86
build_type: 'x87 Release'

steps:
- uses: actions/checkout@v4
Expand Down
117 changes: 117 additions & 0 deletions .github/workflows/msbuildex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# http://go.microsoft.com/fwlink/?LinkID=615560

name: 'MSBuild (Extended)'

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
paths-ignore:
- '*.md'
- LICENSE
- '.nuget/*'
- build/*

permissions:
contents: read

jobs:
build:
runs-on: windows-${{ matrix.vs }}

strategy:
fail-fast: false

matrix:
include:
- vs: 2019
platform: x86
build_type: 'AVX Debug'
- vs: 2019
platform: x64
build_type: 'AVX Debug'
- vs: 2022
platform: x86
build_type: 'AVX Debug'
- vs: 2022
platform: x64
build_type: 'AVX Debug'
- vs: 2019
platform: x86
build_type: 'AVX2 Debug'
- vs: 2019
platform: x64
build_type: 'AVX2 Debug'
- vs: 2022
platform: x86
build_type: 'AVX2 Debug'
- vs: 2022
platform: x64
build_type: 'AVX2 Debug'
- vs: 2019
platform: x86
build_type: 'x87 Debug'
- vs: 2022
platform: x86
build_type: 'x87 Debug'
- vs: 2019
platform: x86
build_type: 'AVX Release'
- vs: 2019
platform: x64
build_type: 'AVX Release'
- vs: 2022
platform: x86
build_type: 'AVX Release'
- vs: 2022
platform: x64
build_type: 'AVX Release'
- vs: 2019
platform: x86
build_type: 'AVX2 Release'
- vs: 2019
platform: x64
build_type: 'AVX2 Release'
- vs: 2022
platform: x86
build_type: 'AVX2 Release'
- vs: 2022
platform: x64
build_type: 'AVX2 Release'
- vs: 2019
platform: x86
build_type: 'x87 Release'
- vs: 2022
platform: x86
build_type: 'x87 Release'

steps:
- uses: actions/checkout@v4

- name: Clone test repository
uses: actions/checkout@v4
with:
repository: walbourn/directxmathtest
path: Tests
ref: main

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2

- name: Build math3
working-directory: ${{ github.workspace }}/Tests/math3
run: msbuild /m /p:Configuration="${{ matrix.build_type }}" /p:Platform=${{ matrix.platform }} ./math3_${{ matrix.vs }}.sln

- if: (matrix.build_type == 'Debug') || (matrix.build_type == 'Release')
name: Build shmath
working-directory: ${{ github.workspace }}/Tests/shmath
run: msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} ./shmath_${{ matrix.vs }}.sln

- if: (matrix.build_type == 'Debug') || (matrix.build_type == 'Release')
name: Build xdsp
working-directory: ${{ github.workspace }}/Tests/xdsp
run: msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} ./XDSPTest_${{ matrix.vs }}.sln

0 comments on commit 2b9ec68

Please sign in to comment.