changeset 207:9d9e6242dd1a

CI/macos: initial macos CI, CI/windows: fix 64-bit build?
author Paper <paper@paper.us.eu.org>
date Tue, 02 Jan 2024 07:08:23 -0500
parents 9e03e23c7a44
children 20fd3acd61c0
files .builds/macos.yml .builds/windows.yml
diffstat 2 files changed, 38 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.builds/macos.yml	Tue Jan 02 07:08:23 2024 -0500
@@ -0,0 +1,34 @@
+image: debian/bookworm
+packages:
+  - qtbase5-dev
+  - qttools5-dev
+  - cmake
+  - clang
+  - libcurl4-openssl-dev
+  - wget
+  - fuse
+  - file
+  - xorg-dev # shouldn't install Xorg!
+  - libwayland-client0
+  - libwayland-dev
+  - pkg-config
+sources:
+  - https://hg.sr.ht/~mrpapersonic/minori
+  - https://github.com/tpoechtrager/osxcross
+environment:
+  BUILD_SUBMITTER: hg.sr.ht
+  MACOSX_DEPLOYMENT_TARGET: 10.9
+tasks:
+  - build: |
+      cd osxcross
+      export TARGET_DIR="$PWD/target"
+      UNATTENDED=1 ./build.sh
+      export PATH="$TARGET_DIR/bin:$PATH"
+      cd ..
+      osxcross-macports install qt5-qtbase qt5-qttools
+      CC="o64-clang" CXX="o64-clang++" CXXFLAGS="-stdlib=libc++" cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER= -DCMAKE_CXX_COMPILER=o64-clang++
+      make
+triggers:
+  - action: email
+    condition: failure
+    to: Paper <mrpapersonic@gmail.com>
--- a/.builds/windows.yml	Tue Jan 02 06:48:20 2024 -0500
+++ b/.builds/windows.yml	Tue Jan 02 07:08:23 2024 -0500
@@ -17,13 +17,8 @@
 environment:
   BUILD_SUBMITTER: hg.sr.ht
 tasks:
-  - get-wine32: |
-      sudo dpkg --add-architecture i386
-      sudo apt-get update
-      sudo apt-get -y install wine32:i386
   - build-win64: |
       export WINEARCH=win64
-      export WINEPREFIX="$HOME/.wine64"
       git clone https://github.com/holyblackcat/quasi-msys2 quasi-msys2-win64
       cd quasi-msys2-win64
       echo MINGW64 >msystem.txt
@@ -33,6 +28,10 @@
       cd build64
       sudo bash -c 'echo -n 1 >/proc/sys/fs/binfmt_misc/status'
       bash -c 'source ../../quasi-msys2-win64/env/all.src && cmake .. -G "Unix Makefiles" -DCMAKE_AUTOMOC_EXECUTABLE="$(which moc)" -DCMAKE_AUTORCC_EXECUTABLE="$(which rcc)" && make'
+  - get-wine32: |
+      sudo dpkg --add-architecture i386
+      sudo apt-get update
+      sudo apt-get -y install wine32:i386
   - build-win32: |
       export WINEARCH=win32
       export WINEPREFIX="$HOME/.wine32"