Skip to content

Merge pull request #1631 from Karry/visual-cache-flush #46

Merge pull request #1631 from Karry/visual-cache-flush

Merge pull request #1631 from Karry/visual-cache-flush #46

name: iOS
on:
pull_request:
branches:
- master
push:
branches:
- master
paths-ignore:
- '.github/workflows/**'
jobs:
build_cmake:
name: cmake
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install build tool
run: brew install cmake ninja
- name: Install dependencies
run: brew install openjdk
- name: Activate XCode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '5.15.2'
host: 'mac'
target: 'ios'
arch: 'ios'
install-deps: 'true'
cache: true
cache-key-prefix: ${{ runner.os }}
- name: Dump Qt installation data
run: echo ${Qt5_DIR}
- name: List Qt installation
run: ls -l ../Qt/5.15.2/ios/
- name: List Qt installation
run: ls -l ../Qt/5.15.2/ios/lib/cmake/Qt5
- name: Configure build project
run: "cmake -B build
-DCMAKE_SYSTEM_NAME=iOS
-DCMAKE_OSX_ARCHITECTURES=arm64
-DCMAKE_OSX_DEPLOYMENT_TARGET=13
-DOSMSCOUT_BUILD_IMPORT=OFF
-DOSMSCOUT_BUILD_GPX=ON
-DOSMSCOUT_BUILD_DEMOS=OFF
-DOSMSCOUT_BUILD_TOOL_DUMPDATA=OFF
-DOSMSCOUT_BUILD_DOC_API=OFF
-DOSMSCOUT_BUILD_WEBPAGE=OFF
-DOSMSCOUT_BUILD_TESTS=OFF
-DQt5_DIR=${Qt5_DIR}/lib/cmake/Qt5
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ON
-DCMAKE_UNITY_BUILD=ON
-Wno-dev"
- name: Build project
run: cmake --build build