changeset 38:1a34fd7469b9

ci/osx: take a different approach
author Paper <mrpapersonic@gmail.com>
date Fri, 22 Sep 2023 09:29:20 -0400
parents 9ae9365dd4ea
children bed33f89a982
files .builds/osx.yml
diffstat 1 files changed, 9 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/.builds/osx.yml	Thu Sep 21 17:15:43 2023 -0400
+++ b/.builds/osx.yml	Fri Sep 22 09:29:20 2023 -0400
@@ -1,34 +1,17 @@
 image: debian/stable
 packages:
-  - cmake
-  - clang
-  - git
-  - patch
-  - python3
-  - libssl-dev
-  - lzma-dev
-  - libxml2-dev
-  - xz
-  - bzip2
-  - cpio
-  - libbz2
-  - zlib1g-dev
-  - llvm-dev
-  - uuid-dev
+  - gcc
 sources:
   - https://hg.sr.ht/~mrpapersonic/minori
-  - https://github.com/tpoechtrager/osxcross
 tasks:
   - build: |
-      cd osxcross/tarballs
-      wget "https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.13.sdk.tar.xz"
-      cd ..
-      UNATTENDED=1 ./build.sh
-      export PATH="$(pwd)/target/bin:$PATH"
-      osxcross-macports -v install qt5-qtbase curl pkgconfig
-      export PKG_CONFIG_PATH="$(pwd)/target/macports/pkgs/opt/local/lib/pkgconfig"
-      cd ../minori
+      curl -O darling.deb https://github.com/darlinghq/darling/releases/download/v0.1.20220704/darling_0.1.20220704.focal_amd64.deb
+      sudo dpkg -i darling.deb
+      sudo apt install --fix-broken
+      cd minori
       mkdir build
       cd build
-      cmake .. -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME="Darwin" -DCMAKE_C_COMPILER="o64-clang" -DCMAKE_CXX_COMPILER="o64-clang++" -DCMAKE_FIND_ROOT_PATH="$(pwd)/../../osxcross/target/macports/pkgs/opt/local/" -DCMAKE_OSX_SYSROOT="$(pwd)/../../osxcross/target/SDK/MacOSX10.13.sdk/"
-      make
+      darling '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"'
+      darling 'brew install qt5 cmake make curl clang'
+      darling 'cmake .. -G "Unix Makefiles"'
+      darling 'make'