# HG changeset patch # User Paper # Date 1695231996 14400 # Node ID dbb13eaeab620e37141b7a6209f9d14090b430cc # Parent a04abc0a35cab88c9a09196d8b2f96a6257c292e ci: add experimental OS X build diff -r a04abc0a35ca -r dbb13eaeab62 .builds/osx.yml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.builds/osx.yml Wed Sep 20 13:46:36 2023 -0400 @@ -0,0 +1,32 @@ +image: alpine/edge +packages: + - cmake + - clang + - git + - patch + - python3 + - curl-dev + - openssl-dev + - xz-dev + - libxml2-dev + - bzip2 + - cpio + - libbz2 + - zlib-dev +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 + 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