Update ci.yaml with xcode 15, 14, 13 and macos-13, replace xcode-sele… #249
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: | |
branches: [ main ] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
xcode_version: [ latest-stable, 14 ] | |
arch: [ "arm64-apple-macosx", "x86_64-apple-macosx" ] | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Xcode version | |
uses: maxim-lobanov/setup-xcode@v1.6.0 | |
with: | |
xcode-version: ${{ matrix.xcode_version }} | |
- name: Build | |
run: swift build -v -c release --triple ${{ matrix.arch }} | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
bundler-cache: true | |
- run: gem install xcpretty | |
- name: Test | |
env: | |
XCODE_VERSION: ${{ matrix.xcode_version }} | |
shell: bash | |
run: | | |
xcrun simctl create "iPhone 12" "iPhone 12" || true | |
xcrun simctl boot "iPhone 12" | |
./prepareTestResults.sh | |
swift test -c release |