fix: build fails on iOS target #977
This file contains 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: CI | |
on: [push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
xcode: | |
- "15.2" | |
os: | |
- macOS | |
- iOS | |
- visionOS | |
machine: | |
- "macOS-14" | |
runs-on: ${{ matrix.machine }} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Select Xcode | |
run: sudo xcode-select --switch /Applications/Xcode_${{ matrix.xcode }}.app | |
- name: bundle install | |
run: bundle update --bundler && bundle install | |
- name: Install CocoaPods dependencies | |
run: bundle exec pod install | |
- run: git config --global core.quotepath false # for Ikemen on SwiftPM | |
- name: Build (iOS) | |
if: matrix.os == 'iOS' | |
run: set -o pipefail && xcodebuild clean build -workspace iMast.xcworkspace -scheme "iMast iOS" -destination "generic/platform=iOS" CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY="" | xcpretty -c | |
- name: Build (visionOS) | |
if: matrix.os == 'visionOS' | |
run: set -o pipefail && xcodebuild clean build -workspace iMast.xcworkspace -scheme "iMast iOS" -destination "generic/platform=visionOS" CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY="" | xcpretty -c | |
- name: Build (macOS) | |
if: matrix.os == 'macOS' | |
run: set -o pipefail && xcodebuild clean build -workspace iMast.xcworkspace -scheme "iMast Mac (App Store)" CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY="" | xcpretty -c |