Mercurial > minori
annotate .builds/osx.yml @ 34:bb12ff38b3d1
ci/osx: attempt #2 at making this work
agh..
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 20 Sep 2023 13:49:35 -0400 |
parents | 5c9a1b9c4773 |
children | 329b7921a6be |
rev | line source |
---|---|
32 | 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 | |
33 | 16 - wget |
32 | 17 sources: |
18 - https://hg.sr.ht/~mrpapersonic/minori | |
19 - https://github.com/tpoechtrager/osxcross | |
20 tasks: | |
21 - build: | | |
34
bb12ff38b3d1
ci/osx: attempt #2 at making this work
Paper <mrpapersonic@gmail.com>
parents:
33
diff
changeset
|
22 cd osxcross/tarballs |
bb12ff38b3d1
ci/osx: attempt #2 at making this work
Paper <mrpapersonic@gmail.com>
parents:
33
diff
changeset
|
23 wget "https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.13.sdk.tar.xz" |
bb12ff38b3d1
ci/osx: attempt #2 at making this work
Paper <mrpapersonic@gmail.com>
parents:
33
diff
changeset
|
24 cd .. |
bb12ff38b3d1
ci/osx: attempt #2 at making this work
Paper <mrpapersonic@gmail.com>
parents:
33
diff
changeset
|
25 UNATTENDED=1 ./build.sh |
bb12ff38b3d1
ci/osx: attempt #2 at making this work
Paper <mrpapersonic@gmail.com>
parents:
33
diff
changeset
|
26 export PATH="$(pwd)/target/bin:$PATH" |
bb12ff38b3d1
ci/osx: attempt #2 at making this work
Paper <mrpapersonic@gmail.com>
parents:
33
diff
changeset
|
27 osxcross-macports -v install qt5-qtbase curl pkgconfig |
bb12ff38b3d1
ci/osx: attempt #2 at making this work
Paper <mrpapersonic@gmail.com>
parents:
33
diff
changeset
|
28 export PKG_CONFIG_PATH="$(pwd)/target/macports/pkgs/opt/local/lib/pkgconfig" |
bb12ff38b3d1
ci/osx: attempt #2 at making this work
Paper <mrpapersonic@gmail.com>
parents:
33
diff
changeset
|
29 cd ../minori |
bb12ff38b3d1
ci/osx: attempt #2 at making this work
Paper <mrpapersonic@gmail.com>
parents:
33
diff
changeset
|
30 mkdir build |
bb12ff38b3d1
ci/osx: attempt #2 at making this work
Paper <mrpapersonic@gmail.com>
parents:
33
diff
changeset
|
31 cd build |
bb12ff38b3d1
ci/osx: attempt #2 at making this work
Paper <mrpapersonic@gmail.com>
parents:
33
diff
changeset
|
32 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/" |
bb12ff38b3d1
ci/osx: attempt #2 at making this work
Paper <mrpapersonic@gmail.com>
parents:
33
diff
changeset
|
33 make |