2019-12-12 13:44:34 -07:00
|
|
|
name: CMake Build (Windows x86-64)
|
|
|
|
|
2020-03-21 16:35:43 -06:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2019-12-12 13:44:34 -07:00
|
|
|
|
|
|
|
env:
|
|
|
|
BUILD_TYPE: Release
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: windows-latest
|
2021-03-06 12:37:51 -07:00
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: msys2 {0}
|
2019-12-12 13:44:34 -07:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2021-03-06 12:37:51 -07:00
|
|
|
- uses: msys2/setup-msys2@v2
|
|
|
|
with:
|
|
|
|
msystem: MINGW64
|
|
|
|
update: true
|
|
|
|
|
2019-12-12 13:44:34 -07:00
|
|
|
- name: Install dependencies
|
2021-03-06 12:37:51 -07:00
|
|
|
run: pacman -Sq --noconfirm git make mingw-w64-x86_64-{cmake,mesa,SDL2,qt5-static,libslirp,libarchive,libepoxy,toolchain}
|
|
|
|
|
2019-12-12 13:44:34 -07:00
|
|
|
- name: Create build environment
|
2021-03-06 12:37:51 -07:00
|
|
|
working-directory: ${{runner.workspace}}
|
|
|
|
run: mkdir build
|
|
|
|
|
2019-12-12 13:44:34 -07:00
|
|
|
- name: Configure
|
2021-03-06 12:37:51 -07:00
|
|
|
working-directory: ${{runner.workspace}}/build
|
|
|
|
run: cmake $GITHUB_WORKSPACE -G 'MSYS Makefiles' -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_STATIC=ON -DQT5_STATIC_DIR=C:/tools/msys64/mingw64/qt5-static
|
|
|
|
|
2019-12-12 13:44:34 -07:00
|
|
|
- name: Make
|
2021-03-06 12:37:51 -07:00
|
|
|
working-directory: ${{runner.workspace}}/build
|
|
|
|
run: make -j$(nproc --all)
|
|
|
|
|
2019-12-12 20:06:57 -07:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2019-12-13 09:34:28 -07:00
|
|
|
name: melonDS
|
2021-03-06 12:37:51 -07:00
|
|
|
path: ${{runner.workspace}}\build\melonDS.exe
|