comparison .builds/osx.yml @ 32:dbb13eaeab62

ci: add experimental OS X build
author Paper <mrpapersonic@gmail.com>
date Wed, 20 Sep 2023 13:46:36 -0400
parents
children 5c9a1b9c4773
comparison
equal deleted inserted replaced
31:a04abc0a35ca 32:dbb13eaeab62
1 image: alpine/edge
2 packages:
3 - cmake
4 - clang
5 - git
6 - patch
7 - python3
8 - curl-dev
9 - openssl-dev
10 - xz-dev
11 - libxml2-dev
12 - bzip2
13 - cpio
14 - libbz2
15 - zlib-dev
16 sources:
17 - https://hg.sr.ht/~mrpapersonic/minori
18 - https://github.com/tpoechtrager/osxcross
19 tasks:
20 - build: |
21 cd osxcross/tarballs
22 wget https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.13.sdk.tar.xz
23 cd ..
24 UNATTENDED=1 ./build.sh
25 export PATH="$(pwd)/target/bin:$PATH"
26 osxcross-macports -v install qt5-qtbase curl pkgconfig
27 export PKG_CONFIG_PATH="$(pwd)/target/macports/pkgs/opt/local/lib/pkgconfig"
28 cd ../minori
29 mkdir build
30 cd build
31 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/"
32 make