Skip to content

Commit 72520a5

Browse files
ci: windows try adding arm64
1 parent b9919f9 commit 72520a5

1 file changed

Lines changed: 17 additions & 8 deletions

File tree

.github/workflows/build-windows.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,16 @@ env:
1717

1818
jobs:
1919
build:
20-
runs-on: windows-2025
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
arch:
24+
- name: x86_64
25+
image: windows-2025
26+
- name: arm64
27+
image: windows-11-arm
28+
29+
runs-on: ${{ matrix.arch.image }}
2130
env:
2231
VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/vcpkg_cache,readwrite
2332
steps:
@@ -27,24 +36,24 @@ jobs:
2736
uses: actions/cache/restore@v4
2837
with:
2938
path: ${{ github.workspace }}/vcpkg_cache
30-
key: vcpkg-x86_64-windows-${{ hashFiles('vcpkg.json') }}
31-
restore-keys: vcpkg-x86_64-windows-
39+
key: vcpkg-${{ matrix.arch.name }}-windows-${{ hashFiles('vcpkg.json') }}
40+
restore-keys: vcpkg-${{ matrix.arch.name }}-windows-
3241
- name: Set up vcpkg
3342
uses: lukka/run-vcpkg@v11
3443
with:
3544
vcpkgJsonGlob: vcpkg.json
3645
- name: Build
3746
uses: lukka/run-cmake@v10
3847
with:
39-
configurePreset: release-windows-x86_64
48+
configurePreset: release-windows-${{ matrix.arch.name }}
4049
configurePresetAdditionalArgs: "['-DENABLE_DEBUG_DEPS=OFF', '-DMELONDS_EMBED_BUILD_INFO=ON']"
41-
buildPreset: release-windows-x86_64
50+
buildPreset: release-windows-${{ matrix.arch.name }}
4251
- uses: actions/upload-artifact@v7
4352
with:
44-
name: melonDS-windows-x86_64
45-
path: .\build\release-windows-x86_64\melonDS.exe
53+
name: melonDS-windows-${{ matrix.arch.name }}
54+
path: .\build\release-windows-${{ matrix.arch.name }}\melonDS.exe
4655
- name: Save vcpkg cache
4756
uses: actions/cache/save@v4
4857
with:
4958
path: ${{ github.workspace }}/vcpkg_cache
50-
key: vcpkg-x86_64-windows-${{ hashFiles('vcpkg.json') }}
59+
key: vcpkg-${{ matrix.arch.name }}-windows-${{ hashFiles('vcpkg.json') }}

0 commit comments

Comments
 (0)