-
-
Notifications
You must be signed in to change notification settings - Fork 18
38 lines (38 loc) · 1.03 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Continuous Integration
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-test:
name: Build & Test (Swift ${{ matrix.swift }}, ${{ matrix.platform }})
runs-on: macos-${{ matrix.macos || '11' }}
strategy:
fail-fast: false
matrix:
swift: ['5.1', '5.2', '5.3', '5.4', '5.5']
platform: [macOS, iOS, tvOS, watchOS]
exclude:
# watchOS requires Swift 5.4 or later.
- swift: '5.1'
platform: watchOS
- swift: '5.2'
platform: watchOS
- swift: '5.3'
platform: watchOS
include:
# The macOS 11 runner no longer includes Swift 5.1.
- swift: '5.1'
macos: '10.15'
steps:
- name: Clone
uses: actions/checkout@v2
- name: Build & Test
uses: mxcl/xcodebuild@v1
with:
swift: ~${{ matrix.swift }}
platform: ${{ matrix.platform }}