Skip to content

Commit 7dd2c2d

Browse files
authored
Update GitHub action for MSBuild on ARM64 native (#294)
1 parent e73573c commit 7dd2c2d

File tree

2 files changed

+54
-6
lines changed

2 files changed

+54
-6
lines changed

.github/workflows/msbuild.yml

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,19 @@ jobs:
4242
platform: ARM64
4343

4444
steps:
45-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
45+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4646

4747
- name: Clone test repository
48-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
48+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4949
with:
5050
repository: walbourn/directxmathtest
5151
path: Tests
5252
ref: main
5353

5454
- name: Add MSBuild to PATH
55-
uses: microsoft/setup-msbuild@30375c66a4eea26614e0d39710365f22f8b0af57 # v3.0.0
55+
uses: microsoft/setup-msbuild@30375c66a4eea26614e0d39710365f22f8b0af57 # v3.0.0
56+
with:
57+
msbuild-architecture: x64
5658

5759
- name: Build math3
5860
working-directory: ${{ github.workspace }}/Tests/math3
@@ -73,3 +75,47 @@ jobs:
7375
run: >
7476
msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }}
7577
./XDSPTest_${{ matrix.vs }}.sln
78+
79+
build2022_arm64:
80+
runs-on: windows-11-arm
81+
82+
strategy:
83+
fail-fast: false
84+
85+
matrix:
86+
build_type: [Debug, Release, 'NI Debug', 'NI Release']
87+
88+
steps:
89+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
90+
91+
- name: Clone test repository
92+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
93+
with:
94+
repository: walbourn/directxmathtest
95+
path: Tests
96+
ref: main
97+
98+
- name: Add MSBuild to PATH
99+
uses: microsoft/setup-msbuild@30375c66a4eea26614e0d39710365f22f8b0af57 # v3.0.0
100+
with:
101+
msbuild-architecture: arm64
102+
103+
- name: Build math3
104+
working-directory: ${{ github.workspace }}/Tests/math3
105+
run: >
106+
msbuild /m /p:Configuration="${{ matrix.build_type }}" /p:Platform=ARM64
107+
./math3_2022.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: >
113+
msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=ARM64
114+
./shmath_2022.sln
115+
116+
- if: (matrix.build_type == 'Debug') || (matrix.build_type == 'Release')
117+
name: Build xdsp
118+
working-directory: ${{ github.workspace }}/Tests/xdsp
119+
run: >
120+
msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=ARM64
121+
./XDSPTest_2022.sln

.github/workflows/msbuildex.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,19 @@ jobs:
9797
build_type: 'x87 Release'
9898

9999
steps:
100-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
100+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
101101

102102
- name: Clone test repository
103-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
103+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
104104
with:
105105
repository: walbourn/directxmathtest
106106
path: Tests
107107
ref: main
108108

109109
- name: Add MSBuild to PATH
110-
uses: microsoft/setup-msbuild@30375c66a4eea26614e0d39710365f22f8b0af57 # v3.0.0
110+
uses: microsoft/setup-msbuild@30375c66a4eea26614e0d39710365f22f8b0af57 # v3.0.0
111+
with:
112+
msbuild-architecture: x64
111113

112114
- name: Build math3
113115
working-directory: ${{ github.workspace }}/Tests/math3

0 commit comments

Comments
 (0)