Mercurial > minori
comparison .builds/osx.yml @ 38:1a34fd7469b9
ci/osx: take a different approach
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 22 Sep 2023 09:29:20 -0400 |
parents | 329b7921a6be |
children | bed33f89a982 |
comparison
equal
deleted
inserted
replaced
37:9ae9365dd4ea | 38:1a34fd7469b9 |
---|---|
1 image: debian/stable | 1 image: debian/stable |
2 packages: | 2 packages: |
3 - cmake | 3 - gcc |
4 - clang | |
5 - git | |
6 - patch | |
7 - python3 | |
8 - libssl-dev | |
9 - lzma-dev | |
10 - libxml2-dev | |
11 - xz | |
12 - bzip2 | |
13 - cpio | |
14 - libbz2 | |
15 - zlib1g-dev | |
16 - llvm-dev | |
17 - uuid-dev | |
18 sources: | 4 sources: |
19 - https://hg.sr.ht/~mrpapersonic/minori | 5 - https://hg.sr.ht/~mrpapersonic/minori |
20 - https://github.com/tpoechtrager/osxcross | |
21 tasks: | 6 tasks: |
22 - build: | | 7 - build: | |
23 cd osxcross/tarballs | 8 curl -O darling.deb https://github.com/darlinghq/darling/releases/download/v0.1.20220704/darling_0.1.20220704.focal_amd64.deb |
24 wget "https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.13.sdk.tar.xz" | 9 sudo dpkg -i darling.deb |
25 cd .. | 10 sudo apt install --fix-broken |
26 UNATTENDED=1 ./build.sh | 11 cd minori |
27 export PATH="$(pwd)/target/bin:$PATH" | |
28 osxcross-macports -v install qt5-qtbase curl pkgconfig | |
29 export PKG_CONFIG_PATH="$(pwd)/target/macports/pkgs/opt/local/lib/pkgconfig" | |
30 cd ../minori | |
31 mkdir build | 12 mkdir build |
32 cd build | 13 cd build |
33 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/" | 14 darling '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"' |
34 make | 15 darling 'brew install qt5 cmake make curl clang' |
16 darling 'cmake .. -G "Unix Makefiles"' | |
17 darling 'make' |