Skip to content

Commit

Permalink
Merge pull request #302 from ishkawa/feature/update-ci
Browse files Browse the repository at this point in the history
[CI] Update Xcode & macOS versions
  • Loading branch information
Econa77 authored Aug 13, 2022
2 parents 6a2e2a9 + 3cfeeae commit 84955ed
Showing 1 changed file with 37 additions and 16 deletions.
53 changes: 37 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,40 @@ on:

jobs:
podspec:
runs-on: macos-10.15
runs-on: macos-12
name: CocoaPods Lint
env:
DEVELOPER_DIR: "/Applications/Xcode_12.3.app/Contents/Developer"
DEVELOPER_DIR: "/Applications/Xcode_13.4.1.app/Contents/Developer"
steps:
- uses: actions/checkout@v2
- run: pod lib lint --allow-warnings

xcode:
runs-on: macos-10.15
name: ${{ matrix.xcode }}
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
strategy:
matrix:
xcode: [10.3, 11.7, 12.3]
fail-fast: false
name: Xcode ${{ matrix.xcode }}
env:
DEVELOPER_DIR: "/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer"
matrix:
include:
- xcode: "Xcode_13.4.1"
runsOn: macOS-12
name: "macOS 12, Xcode 13.4.1, Swift 5.6.1"
- xcode: "Xcode_12.5.1"
runsOn: macOS-11
name: "macOS 11, Xcode 12.5.1, Swift 5.4.2"
- xcode: "Xcode_11.7"
runsOn: macOS-10.15
name: "macOS 10.15, Xcode 11.7, Swift 5.2.4"
- xcode: "Xcode_10.3"
runsOn: macOS-10.15
name: "macOS 10.15, Xcode 10.3, Swift 5.0.1"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: test
- name: ${{ matrix.name }}
run: |
set -o pipefail
xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit | xcpretty -c
Expand All @@ -39,17 +51,26 @@ jobs:
if: ${{ success() }}

swiftpm:
runs-on: macos-10.15
name: SPM with ${{ matrix.xcode }}
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
strategy:
matrix:
xcode: [11.7, 12.3]
fail-fast: false
name: SwiftPM (Xcode ${{ matrix.xcode }})
env:
DEVELOPER_DIR: "/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer"
matrix:
include:
- xcode: "Xcode_13.4.1"
runsOn: macOS-12
name: "macOS 12, Xcode 13.4.1, Swift 5.6.1"
- xcode: "Xcode_12.5.1"
runsOn: macOS-11
name: "macOS 11, Xcode 12.5.1, Swift 5.4.2"
- xcode: "Xcode_11.7"
runsOn: macOS-10.15
name: "macOS 10.15, Xcode 11.7, Swift 5.2.4"
steps:
- uses: actions/checkout@v2
- name: build and test
- name: ${{ matrix.name }}
run: |
swift build
swift test

0 comments on commit 84955ed

Please sign in to comment.