Update CI jobs to build for iOS 16 and 17 on macOS 13 #43
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: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
xcode-build: | |
name: Xcode Build | |
runs-on: macOS-13 | |
strategy: | |
matrix: | |
platform: ['iOS_17', 'iOS_16'] | |
fail-fast: false | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
- name: Bundle Install | |
run: bundle install --gemfile=Example/Gemfile | |
- name: Select Xcode Version (15.1) | |
run: sudo xcode-select --switch /Applications/Xcode_15.1.app/Contents/Developer | |
if: matrix.platform == 'iOS_17' | |
- name: Select Xcode Version (14.3.1) | |
run: sudo xcode-select --switch /Applications/Xcode_14.3.1.app/Contents/Developer | |
if: matrix.platform == 'iOS_16' | |
- name: Pod Install | |
run: bundle exec --gemfile=Example/Gemfile pod install --project-directory=Example | |
- name: Build and Test | |
run: Scripts/build.swift xcode ${{ matrix.platform }} `which xcpretty` | |
pod-lint: | |
name: Pod Lint | |
runs-on: macOS-13 | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
- name: Bundle Install | |
run: bundle install --gemfile=Example/Gemfile | |
- name: Update Pods Repo | |
run: bundle exec --gemfile=Example/Gemfile pod repo update | |
- name: Lint AardvarkCrashReport Podspec | |
run: bundle exec --gemfile=Example/Gemfile pod lib lint --verbose --fail-fast AardvarkCrashReport.podspec --allow-warnings |