Skip to content

Commit

Permalink
Add Windows on ARM build
Browse files Browse the repository at this point in the history
  • Loading branch information
kvnp committed Dec 25, 2023
1 parent f580d20 commit 21d6f0f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build-windows-aarch64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CMake Build (Windows on ARM)

on:
push:
branches:
- master
pull_request:
branches:
- master

env:
BUILD_TYPE: Release

jobs:
build:

runs-on: windows-latest

defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v1
- uses: msys2/setup-msys2@v2
with:
msystem: CLANGARM64
update: true

- name: Install dependencies
run: pacman -Sq --noconfirm git pkgconf mingw-w64-clang-aarch64-{cmake,SDL2,qt5-static,libslirp,libarchive,toolchain}

- name: Configure
working-directory: ${{runner.workspace}}
run: cmake -B build $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_STATIC=ON -DCMAKE_PREFIX_PATH=C:/tools/msys64/clangarm64/qt5-static

- name: Make
working-directory: ${{runner.workspace}}/build
run: cmake --build .

- uses: actions/upload-artifact@v1
with:
name: melonDS-windows-aarch64
path: ${{runner.workspace}}\build\melonDS.exe

0 comments on commit 21d6f0f

Please sign in to comment.