Skip to content

Commit dcc1816

Browse files
ci: Add arm64 builds for Windows
1 parent c6d826e commit dcc1816

1 file changed

Lines changed: 18 additions & 8 deletions

File tree

.github/workflows/build-windows.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,17 @@ 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+
name: ${{ matrix.arch.name }}
30+
runs-on: ${{ matrix.arch.image }}
2131
env:
2232
VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/vcpkg_cache,readwrite
2333
steps:
@@ -27,24 +37,24 @@ jobs:
2737
uses: actions/cache/restore@v4
2838
with:
2939
path: ${{ github.workspace }}/vcpkg_cache
30-
key: vcpkg-x86_64-windows-${{ hashFiles('vcpkg.json') }}
31-
restore-keys: vcpkg-x86_64-windows-
40+
key: vcpkg-${{ matrix.arch.name }}-windows-${{ hashFiles('vcpkg.json') }}
41+
restore-keys: vcpkg-${{ matrix.arch.name }}-windows-
3242
- name: Set up vcpkg
3343
uses: lukka/run-vcpkg@v11
3444
with:
3545
vcpkgJsonGlob: vcpkg.json
3646
- name: Build
3747
uses: lukka/run-cmake@v10
3848
with:
39-
configurePreset: release-windows-x86_64
49+
configurePreset: release-windows-${{ matrix.arch.name }}
4050
configurePresetAdditionalArgs: "['-DENABLE_DEBUG_DEPS=OFF', '-DMELONDS_EMBED_BUILD_INFO=ON']"
41-
buildPreset: release-windows-x86_64
51+
buildPreset: release-windows-${{ matrix.arch.name }}
4252
- uses: actions/upload-artifact@v7
4353
with:
44-
name: melonDS-windows-x86_64
45-
path: .\build\release-windows-x86_64\melonDS.exe
54+
name: melonDS-windows-${{ matrix.arch.name }}
55+
path: .\build\release-windows-${{ matrix.arch.name }}\melonDS.exe
4656
- name: Save vcpkg cache
4757
uses: actions/cache/save@v4
4858
with:
4959
path: ${{ github.workspace }}/vcpkg_cache
50-
key: vcpkg-x86_64-windows-${{ hashFiles('vcpkg.json') }}
60+
key: vcpkg-${{ matrix.arch.name }}-windows-${{ hashFiles('vcpkg.json') }}

0 commit comments

Comments
 (0)