# HG changeset patch # User Paper # Date 1695389360 14400 # Node ID 1a34fd7469b9f8bd5ff6e5dae76c8f2480365f60 # Parent 9ae9365dd4eae3253993c03c1e1f382671ed88ee ci/osx: take a different approach diff -r 9ae9365dd4ea -r 1a34fd7469b9 .builds/osx.yml --- 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'