xcode version #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: Swift | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
name: Swift ${{ matrix.platform }} on ${{ matrix.os }} | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
platform: | |
- platform=iPhone 16 Pro Max | |
- platform=iPhone 16 Pro | |
os: | |
- 17.4 | |
- 18.2 | |
steps: | |
# Checkout the repository | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# Install any dependencies | |
- name: Install Dependencies | |
run: swift package resolve | |
# Run build on ${{ matrix.platform }} with iOS ${{ matrix.os }} | |
- name: Run Build on ${{ matrix.platform }} (iOS ${{ matrix.os }}) | |
run: | | |
xcodebuild build \ | |
-scheme 'APProgressToolbar' \ | |
-destination 'platform=iOS Simulator,name=${{ matrix.platform }},OS=${{ matrix.os }}' |