annotate .builds/osx.yml @ 33:5c9a1b9c4773

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