Skip to content

Commit

Permalink
Add MSBuild GitHUb actions
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Jul 28, 2024
1 parent 9c01cd2 commit fa168db
Show file tree
Hide file tree
Showing 4 changed files with 177 additions and 47 deletions.
168 changes: 168 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# http://go.microsoft.com/fwlink/?LinkID=615560

name: MSBuild

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:
vs: [2019, 2022]
build_type: [Debug, Release, 'NI Debug', 'NI Release']
platform: [x86, x64, ARM64]
include:
- os: 2019
platform: x86
build_type: 'SSE3 Debug'
- os: 2019
platform: x64
build_type: 'SSE3 Debug'
- os: 2022
platform: x86
build_type: 'SSE3 Debug'
- os: 2022
platform: x64
build_type: 'SSE3 Debug'
- os: 2019
platform: x86
build_type: 'SSE4 Debug'
- os: 2019
platform: x64
build_type: 'SSE4 Debug'
- os: 2022
platform: x86
build_type: 'SSE4 Debug'
- os: 2022
platform: x64
build_type: 'SSE4 Debug'
- 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: 'SSE3 Release'
- os: 2019
platform: x64
build_type: 'SSE3 Release'
- os: 2022
platform: x86
build_type: 'SSE3 Release'
- os: 2022
platform: x64
build_type: 'SSE3 Release'
- os: 2019
platform: x86
build_type: 'SSE4 Release'
- os: 2019
platform: x64
build_type: 'SSE4 Release'
- os: 2022
platform: x86
build_type: 'SSE4 Release'
- os: 2022
platform: x64
build_type: 'SSE4 Release'
- 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

- 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
27 changes: 4 additions & 23 deletions build/DirectXMath-GitHub-Dev17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,15 @@ schedules:
include:
- main

trigger:
branches:
include:
- main
paths:
exclude:
- '*.md'
- LICENSE
- CMake*
- '.github/*'
- '.nuget/*'
- build/*.cmake
- build/*.in

# GitHub Actions handles MSBuild for CI/PR
trigger: none
pr:
branches:
include:
- main
paths:
exclude:
- '*.md'
- LICENSE
- CMake*
- '.github/*'
- '.nuget/*'
- build/*.cmake
- build/*.in
drafts: false
include:
- build/*-GitHub-Dev17.yml

resources:
repositories:
Expand Down
27 changes: 4 additions & 23 deletions build/DirectXMath-GitHub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,15 @@ schedules:
include:
- main

trigger:
branches:
include:
- main
paths:
exclude:
- '*.md'
- LICENSE
- CMake*
- '.github/*'
- '.nuget/*'
- build/*.cmake
- build/*.in

# GitHub Actions handles MSBuild for CI/PR
trigger: none
pr:
branches:
include:
- main
paths:
exclude:
- '*.md'
- LICENSE
- CMake*
- '.github/*'
- '.nuget/*'
- build/*.cmake
- build/*.in
drafts: false
include:
- build/DirectXMath-GitHub.yml

resources:
repositories:
Expand Down
2 changes: 1 addition & 1 deletion build/DirectXMath-SDL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ schedules:
include:
- main

# GitHub Actions handles CodeQL and PREFAST for CI/PR
trigger: none

pr:
branches:
include:
Expand Down

0 comments on commit fa168db

Please sign in to comment.