chore: Bump CI to Xcode 15.1. Bump gems. [UI-5186] #857
Workflow file for this run
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
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md | |
# https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md | |
# https://github.com/actions/cache/blob/ff937cc95032836a535d249de4ce2fc52aeae834/examples.md | |
name: Tests | |
on: | |
pull_request: | |
jobs: | |
spm: | |
name: Swift Package Manager | |
runs-on: macos-13-xlarge | |
steps: | |
- name: Switch To Xcode 15.1 | |
run: sudo xcode-select -switch /Applications/Xcode_15.1.app | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
# Build | |
- name: Build | |
run: swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios15.0-simulator" | |
ios_17: | |
name: iOS 17 | |
runs-on: macos-13-xlarge | |
steps: | |
- name: Switch To Xcode 15.1 | |
run: sudo xcode-select -switch /Applications/Xcode_15.1.app | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
# Build Caching | |
- name: Cache Bundler | |
uses: actions/cache@v2 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Cache Cocoapods | |
uses: actions/cache@v2 | |
with: | |
path: Pods | |
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-pods- | |
# Install & Build | |
- name: Bundle install | |
run: | | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: Pod Install | |
run: bundle exec pod install --repo-update | |
- name: Run Tests | |
run: Scripts/run_ios17_tests.sh | |
ios_16: | |
name: iOS 16 | |
runs-on: macos-13-xlarge | |
steps: | |
- name: Switch To Xcode 15.1 | |
run: sudo xcode-select -switch /Applications/Xcode_15.1.app | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
# Build Caching | |
- name: Cache Bundler | |
uses: actions/cache@v2 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Cache Cocoapods | |
uses: actions/cache@v2 | |
with: | |
path: Pods | |
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-pods- | |
# Install & Build | |
- name: Bundle install | |
run: | | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: Pod Install | |
run: bundle exec pod install --repo-update | |
- name: Run Tests | |
run: Scripts/run_ios16_tests.sh | |
ios_15: | |
name: iOS 15 | |
runs-on: macos-13-xlarge | |
steps: | |
- name: Switch To Xcode 15.1 | |
run: sudo xcode-select -switch /Applications/Xcode_15.1.app | |
- name: Install xcodes | |
run: brew install aria2 xcodesorg/made/xcodes | |
- name: Install iOS ${{ matrix.sdk }} | |
run: sudo xcodes runtimes install "iOS 15.2" | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
# Build Caching | |
- name: Cache Bundler | |
uses: actions/cache@v2 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Cache Cocoapods | |
uses: actions/cache@v2 | |
with: | |
path: Pods | |
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-pods- | |
# Install & Build | |
- name: Bundle install | |
run: | | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: Pod Install | |
run: bundle exec pod install --repo-update | |
- name: Run Tests | |
run: Scripts/run_ios15_tests.sh | |
ios_14: | |
name: iOS 14 | |
runs-on: macos-13-xlarge | |
steps: | |
- name: Switch To Xcode 14 | |
run: sudo xcode-select -switch /Applications/Xcode_15.1.app | |
- name: Install xcodes | |
run: brew install aria2 xcodesorg/made/xcodes | |
- name: Install iOS ${{ matrix.sdk }} | |
run: sudo xcodes runtimes install "iOS 14.5" | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
# Build Caching | |
- name: Cache Bundler | |
uses: actions/cache@v2 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Cache Cocoapods | |
uses: actions/cache@v2 | |
with: | |
path: Pods | |
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-pods- | |
# Install & Build | |
- name: Bundle install | |
run: | | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: Pod Install | |
run: bundle exec pod install --repo-update | |
- name: Run Tests | |
run: Scripts/run_ios14_tests.sh |