-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (55 loc) · 1.22 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
push:
branches:
- 'main'
paths:
- '.github/workflows/CI.yml'
- 'Package.*'
- 'Sources/**'
- 'Tests/**'
- '!**/*.docc/**'
merge_group:
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-11
- macos-12
- ubuntu-20.04
- ubuntu-22.04
swift:
- '5.5'
- '5.6'
- '5.7'
- '5.8'
exclude:
- os: macos-11
swift: '5.8'
- os: macos-12
swift: '5.5'
- os: macos-12
swift: '5.6'
- os: ubuntu-20.04
swift: '5.8'
- os: ubuntu-22.04
swift: '5.5'
- os: ubuntu-22.04
swift: '5.6'
runs-on: ${{ matrix.os }}
steps:
- name: Setup Swift
uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: swift build
- name: Test
# Skip testing due to Concurrency backport issue
if: ${{ !startsWith(matrix.os, 'macos-') || matrix.swift >= '5.7' }}
run: swift test