-
Notifications
You must be signed in to change notification settings - Fork 36
78 lines (67 loc) · 1.82 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Run CI
on:
push:
branches: [ main ]
paths-ignore:
- '**.md' # Do not need to run CI for markdown changes.
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
jobs:
macos-build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- xcode-version: 15.0.1
ios-sim: 'platform=iOS Simulator,name=iPhone 17,OS=17.0'
os: macos-13
- xcode-version: 14.3.1
ios-sim: 'platform=iOS Simulator,name=iPhone 16,OS=16.4'
os: macos-13
- xcode-version: 13.4.1
ios-sim: 'platform=iOS Simulator,name=iPhone 11,OS=15.5'
os: macos-12
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # If you only need the current version keep this.
- uses: ./.github/actions/ci
with:
xcode-version: ${{ matrix.xcode-version }}
ios-sim: ${{ matrix.ios-sim }}
- uses: ./.github/actions/build-docs
linux-build:
runs-on: ubuntu-latest
strategy:
matrix:
swift-version:
- 5.1
- 5.2
- 5.3
- 5.4
- 5.5
- 5.6
- 5.7
- 5.8
- 5.9
container: swift:${{ matrix.swift-version }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # If you only need the current version keep this.
- name: Build and test
run: swift test --enable-test-discovery
windows-build:
name: Windows - Swift 5.9
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install Swift
uses: compnerd/gha-setup-swift@cd348eb89f2f450b0664c07fb1cb66880addf17d
with:
branch: swift-5.9-release
tag: 5.9-RELEASE
- name: Build and test
run: swift test