WIP Windows lite #75
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: iOS Check | |
| on: | |
| workflow_dispatch: # Manual trigger | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| paths-ignore: | |
| - .gitignore | |
| - .github/** | |
| - '!.github/workflows/ios-check.yaml' # Run check on self change | |
| - '**/*_tests/**' | |
| - '**/CMakeLists.txt' | |
| - CONTRIBUTORS | |
| - LICENSE | |
| - NOTICE | |
| - README.md | |
| - android/** | |
| - data/strings/** | |
| - docs/** | |
| - generator/** | |
| - iphone/metadata/** | |
| - packaging/** | |
| - platform/*_android* | |
| - platform/*_linux* | |
| - platform/*_mac* | |
| - platform/*qt* | |
| - platform/*_win* | |
| - pyhelpers/** | |
| - qt*/** | |
| - skin_generator/** | |
| - tools/** | |
| - track_generator/** | |
| jobs: | |
| ios-check: | |
| name: Build iOS | |
| runs-on: macos-15 | |
| env: | |
| DEVELOPER_DIR: /Applications/Xcode_16.4.app/Contents/Developer | |
| LANG: en_US.UTF-8 # Fastlane complains that the terminal is using ASCII. | |
| LANGUAGE: en_US.UTF-8 | |
| LC_ALL: en_US.UTF-8 | |
| TEST_RESULTS_BUNDLE_NAME: OMaps-Test-Results | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| buildType: [Debug, Release] | |
| # Cancels previous jobs if the same branch or PR was updated again. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ matrix.buildType }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| actions: write # To delete unnecessary cache. | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v4 | |
| - name: Restore Boost submodule from cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| 3party/boost | |
| .git/modules/3party/boost | |
| key: boost-submodule | |
| - name: Parallel submodules checkout | |
| shell: bash | |
| run: git submodule update --depth 1 --init --recursive --jobs=$(($(sysctl -n hw.logicalcpu) * 20)) | |
| - name: Configure repository | |
| shell: bash | |
| run: ./configure.sh | |
| - name: Configure XCode cache | |
| uses: irgaly/xcode-cache@v1 | |
| with: | |
| key: xcode-cache-deriveddata-${{ github.workflow }}-${{ matrix.buildType }}-${{ github.sha }} | |
| restore-keys: xcode-cache-deriveddata-${{ github.workflow }}-${{ matrix.buildType }} | |
| delete-used-deriveddata-cache: true | |
| - name: Build and Run Tests (Debug) | |
| if: matrix.buildType == 'Debug' | |
| shell: bash | |
| run: | | |
| # Change back "build" to "test" after fixing https://github.com/organicmaps/organicmaps/issues/9867 and revert 6dede38cccfbdbed6c35abf3fea1b76553018f05 | |
| xcodebuild build \ | |
| -workspace xcode/omim.xcworkspace \ | |
| -scheme OMaps \ | |
| -configuration Debug \ | |
| -sdk iphonesimulator \ | |
| -destination 'generic/platform=iOS' \ | |
| -quiet \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| CODE_SIGNING_ALLOWED=NO | |
| - name: Build (Release) | |
| if: matrix.buildType == 'Release' | |
| shell: bash | |
| run: | | |
| xcodebuild build \ | |
| -workspace xcode/omim.xcworkspace \ | |
| -scheme OMaps \ | |
| -configuration Release \ | |
| -destination 'generic/platform=iOS' \ | |
| -quiet \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| CODE_SIGNING_ALLOWED=NO |