2019-10-19 09:37:28 +00:00
|
|
|
name: iOS
|
2019-10-26 01:04:01 +00:00
|
|
|
on:
|
|
|
|
push:
|
2024-01-20 12:07:33 +00:00
|
|
|
paths-ignore:
|
|
|
|
- scripts/docker/**
|
2019-10-26 01:04:01 +00:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
2024-01-20 12:07:33 +00:00
|
|
|
paths-ignore:
|
|
|
|
- scripts/docker/**
|
2019-10-26 01:04:01 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2019-10-19 09:37:28 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-12-11 17:49:40 +00:00
|
|
|
iOSBuild:
|
2022-09-23 19:13:06 +00:00
|
|
|
runs-on: macOS-11
|
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"
|
2024-01-05 04:44:31 +00:00
|
|
|
|
2019-10-19 09:37:28 +00:00
|
|
|
- name: checkout sources
|
|
|
|
uses: actions/checkout@v1
|
2024-01-05 04:44:31 +00:00
|
|
|
|
2019-10-19 09:37:28 +00:00
|
|
|
- name: setup Homebrew
|
2020-04-04 17:25:47 +00:00
|
|
|
run: brew install autoconf automake libtool pkg-config
|
2024-01-05 04:44:31 +00:00
|
|
|
|
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 -
|
2024-01-05 04:44:31 +00:00
|
|
|
|
|
|
|
- name: store dummy version and build number for test build
|
|
|
|
run: |
|
|
|
|
echo "100" > latest-subsurface-buildnumber
|
|
|
|
echo "CICD-test-build" > latest-subsurface-buildnumber-extension
|
|
|
|
|
2019-10-19 09:37:28 +00:00
|
|
|
- name: build Subsurface-mobile for iOS
|
2022-05-13 18:33:05 +00:00
|
|
|
env:
|
|
|
|
SUBSURFACE_REPO_PATH: ${{ github.workspace }}
|
2019-10-19 09:37:28 +00:00
|
|
|
run: |
|
2022-05-13 18:33:05 +00:00
|
|
|
cd ${SUBSURFACE_REPO_PATH}/..
|
|
|
|
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}
|
|
|
|
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}/libdivecomputer
|
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
|