2019-10-19 09:37:28 +00:00
|
|
|
name: iOS
|
2019-10-26 01:04:01 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2019-10-19 09:37:28 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
mobileBuild:
|
2020-11-01 19:27:06 +00:00
|
|
|
runs-on: macOS-10.15
|
2019-10-19 09:37:28 +00:00
|
|
|
steps:
|
2020-11-01 19:27:06 +00:00
|
|
|
- name: switch to Xcode 11
|
|
|
|
run: sudo xcode-select -s "/Applications/Xcode_11.7.app"
|
2019-10-19 09:37:28 +00:00
|
|
|
- name: checkout sources
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: setup Homebrew
|
2020-04-04 17:25:47 +00:00
|
|
|
run: brew install autoconf automake libtool pkg-config
|
2019-10-19 09:37:28 +00:00
|
|
|
- name: set our Qt build
|
|
|
|
run: |
|
|
|
|
env
|
2020-02-12 17:47:52 +00:00
|
|
|
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 -
|
2019-10-19 09:37:28 +00:00
|
|
|
- name: build Subsurface-mobile for iOS
|
|
|
|
run: |
|
2020-11-19 04:09:53 +00:00
|
|
|
mkdir -p $HOME/build
|
|
|
|
cd $HOME/build
|
2019-10-19 09:37:28 +00:00
|
|
|
ln -s $HOME/Qt Qt
|
2020-11-19 04:09:53 +00:00
|
|
|
echo "build for simulator"
|
|
|
|
bash -x $GITHUB_WORKSPACE/packaging/ios/build.sh -simulator
|