mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 11:31:29 +00:00
c5ab9647d5
It appears that Xcode 12 applies some rather self defeating logic when picking build architectures in release builds for the simulator. It adds aarch64 by default and I can't find a way to turn that off from the command line. At the same time, you can't link against the simulator if you have build with aarch64 as the aarch64 simulator doesn't exist, yet. Since I couldn't get any of the claimed workarounds to work, I'm forcing Xcode 11 to be used in the Action. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
35 lines
1 KiB
YAML
35 lines
1 KiB
YAML
name: iOS
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
mobileBuild:
|
|
runs-on: macOS-10.15
|
|
steps:
|
|
- name: switch to Xcode 11
|
|
run: sudo xcode-select -s "/Applications/Xcode_11.7.app"
|
|
- name: checkout sources
|
|
uses: actions/checkout@v1
|
|
- name: setup Homebrew
|
|
run: brew install autoconf automake libtool pkg-config
|
|
- name: set our Qt build
|
|
run: |
|
|
env
|
|
curl -L --output Qt-5.14.1-ios.tar.xz https://f002.backblazeb2.com/file/Subsurface-Travis/Qt-5.14.1-ios.tar.xz
|
|
mkdir -p $HOME/Qt
|
|
xzcat Qt-5.14.1-ios.tar.xz | tar -x -C $HOME/Qt -f -
|
|
- name: build Subsurface-mobile for iOS
|
|
run: |
|
|
cd packaging/ios
|
|
ln -s $HOME/Qt Qt
|
|
echo "build dependencies"
|
|
bash -x build.sh -simulator
|
|
echo "Subsurface-mobile for iOS"
|
|
cd build-Subsurface-mobile-*for_iOS-Release
|
|
sed -i.bak 's/-Wall/-Wno-everything/' Makefile # make the build far less verbose
|
|
make -j2
|