Commit 76cd6722 authored by Nirbheek Chauhan's avatar Nirbheek Chauhan 🐜
Browse files

ci: Add iOS CI with a dynamic cross file

Part-of: <!51>
parent 6255b6c5
......@@ -113,3 +113,46 @@ macos x86_64:
- meson compile --verbose -C build
- meson test -C build
- meson test -C build --benchmark
ios arm64:
stage: 'build'
- gst-ios-13.2
expire_in: '5 days'
when: 'always'
- "build/meson-logs/*txt"
- pip3 install --upgrade pip
# Make sure meson and meson are up to date
- pip3 install -U meson ninja
# Need to install certificates for python
- pip3 install --upgrade certifi
# Anther way to install certificates
- open /Applications/Python\ 3.8/Install\ Certificates.command
- CERT_PATH=$(python3 -m certifi) && export SSL_CERT_FILE=${CERT_PATH} && export REQUESTS_CA_BUNDLE=${CERT_PATH}
- |
cat > ios-cross-file.txt <<EOF
system = 'darwin'
cpu_family = 'aarch64'
cpu = 'aarch64'
endian = 'little'
c_args = ['-arch', 'arm64', '--sysroot=$(xcrun --sdk iphoneos --show-sdk-path)', '-miphoneos-version-min=8.0']
c_link_args = ['-arch', 'arm64', '--sysroot=$(xcrun --sdk iphoneos --show-sdk-path)', '-miphoneos-version-min=8.0']
ar = '$(xcrun --find --sdk iphoneos ar)'
c = '$(xcrun --find --sdk iphoneos clang)'
cpp = '$(xcrun --find --sdk iphoneos clang++)'
ranlib = '$(xcrun --find --sdk iphoneos ranlib)'
strip = '$(xcrun --find --sdk iphoneos strip)'
pkgconfig = 'false'
- meson setup --werror -Dorc-test=disabled -Db_bitcode=true --cross-file ios-cross-file.txt build
- meson compile --verbose -C build
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment