Update build.yml #20
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: build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
name: Build project | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
destination: ['platform=iOS Simulator,OS=17.0,name=iPhone 15'] | |
steps: | |
- name: Setup Xcode | |
uses: maxim-lobanov/[email protected] | |
with: | |
xcode-version: '15.0' | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build | |
working-directory: ./{{cookiecutter.app_name}} | |
env: | |
platform: ${{ 'iOS Simulator' }} | |
run: | | |
echo "destination=${destination}" | |
xcodebuild clean test -project {{cookiecutter.app_name}}.xcodeproj -scheme Development -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO | |
env: | |
destination: ${{ matrix.destination }} |