From 6c1b03e1f5a8d29de5a91ca3c0896a2d83b72e43 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Wed, 8 May 2024 13:54:23 +0200 Subject: CI: Added MSYS2 build on AppVeyor Makes a release build and publishes the Windows installer as artifact. --- .appveyor.yml | 15 +++++++++++++++ packaging/msys2-build.sh | 18 ++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .appveyor.yml create mode 100755 packaging/msys2-build.sh diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 00000000..22124121 --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,15 @@ +version: 0.7.0.{build} +image: Visual Studio 2022 +environment: + CHERE_INVOKING: yes # Preserve the current working directory + MSYSTEM: UCRT64 +install: + - git submodule update --init +build_script: +- cmd: | + C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu" + C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu" + C:\msys64\usr\bin\bash -lc "./packaging/msys2-build.sh" +artifacts: + - name: Installer + path: build/Mana-*-win64.exe diff --git a/packaging/msys2-build.sh b/packaging/msys2-build.sh new file mode 100755 index 00000000..209e725f --- /dev/null +++ b/packaging/msys2-build.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +pacman --noconfirm -S \ + mingw-w64-ucrt-x86_64-gcc \ + mingw-w64-ucrt-x86_64-cmake \ + mingw-w64-ucrt-x86_64-physfs \ + mingw-w64-ucrt-x86_64-curl-winssl \ + mingw-w64-ucrt-x86_64-SDL2_image \ + mingw-w64-ucrt-x86_64-SDL2_mixer \ + mingw-w64-ucrt-x86_64-SDL2_net \ + mingw-w64-ucrt-x86_64-SDL2_ttf \ + mingw-w64-ucrt-x86_64-libxml2 \ + mingw-w64-ucrt-x86_64-nsis + +cmake -B build . -DUSE_SYSTEM_GUICHAN=OFF -DCMAKE_BUILD_TYPE=Release +cmake --build build +pushd build +cpack -- cgit v1.2.3-70-g09d2