2023-12-28 14:03:44 +00:00
|
|
|
name: Windows
|
2019-12-12 20:44:34 +00:00
|
|
|
|
2020-03-21 22:35:43 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2019-12-12 20:44:34 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
BUILD_TYPE: Release
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: windows-latest
|
2021-03-06 19:37:51 +00:00
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: msys2 {0}
|
2019-12-12 20:44:34 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2021-03-06 19:37:51 +00:00
|
|
|
- uses: msys2/setup-msys2@v2
|
|
|
|
with:
|
|
|
|
msystem: MINGW64
|
|
|
|
update: true
|
|
|
|
|
2019-12-12 20:44:34 +00:00
|
|
|
- name: Install dependencies
|
2024-05-15 16:00:55 +00:00
|
|
|
run: pacman -Sq --noconfirm git pkgconf mingw-w64-x86_64-{cmake,SDL2,qt5-static,libarchive,toolchain}
|
2021-03-06 19:37:51 +00:00
|
|
|
|
2019-12-12 20:44:34 +00:00
|
|
|
- name: Configure
|
2022-11-09 18:54:35 +00:00
|
|
|
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/mingw64/qt5-static
|
2021-03-06 19:37:51 +00:00
|
|
|
|
2019-12-12 20:44:34 +00:00
|
|
|
- name: Make
|
2021-03-06 19:37:51 +00:00
|
|
|
working-directory: ${{runner.workspace}}/build
|
2022-11-09 18:54:35 +00:00
|
|
|
run: cmake --build .
|
2021-03-06 19:37:51 +00:00
|
|
|
|
2019-12-13 03:06:57 +00:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2021-06-13 12:06:15 +00:00
|
|
|
name: melonDS-windows-x86_64
|
2021-03-06 19:37:51 +00:00
|
|
|
path: ${{runner.workspace}}\build\melonDS.exe
|