-
Notifications
You must be signed in to change notification settings - Fork 113
112 lines (98 loc) · 2.82 KB
/
main.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [main]
pull_request:
branches: "*"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
macos_build:
strategy:
matrix:
include:
- xcode: "11.7" # Swift 5.2
macOS: "10.15"
iOS: "13.7"
tvOS: "13.4"
useCodecov: "false"
- xcode: "12.4" # Swift 5.3
macOS: "10.15"
iOS: "14.4"
tvOS: "14.3"
useCodecov: "false"
- xcode: "12.5.1" # Swift 5.4
macOS: "11.0"
iOS: "14.5"
tvOS: "14.5"
useCodecov: "false"
- xcode: "13.1" # Swift 5.5
macOS: "11.0"
iOS: "15.0"
tvOS: "15.0"
useCodecov: "false"
- xcode: "13.4.1" # Swift 5.6
macOS: "12"
iOS: "15.5"
tvOS: "15.4"
useCodecov: "false"
- xcode: "14.0" # Swift 5.7
macOS: "12"
iOS: "16.0"
tvOS: "16.0"
useCodecov: "true"
runs-on: macos-${{ matrix.macOS }}
name: Build with Xcode ${{ matrix.xcode }} on macOS ${{ matrix.macOS }}
steps:
- uses: actions/checkout@v2
- name: Build with Xcode ${{ matrix.xcode }}
run: ./test_xcodebuild.sh Xcode_${{ matrix.xcode }}
env:
IOS_DEVICE: "platform=iOS Simulator,OS=${{ matrix.iOS }},name=iPhone 8"
TVOS_DEVICE: "platform=tvOS Simulator,OS=${{ matrix.tvOS }},name=Apple TV"
CODECOV_JOB: ${{ matrix.useCodecov }}
CODECOV_TOKEN: ${{ secrets.codecovToken }}
pod-lib-lint:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- name: Run CocoaPods linter
run: ./pod.sh
linux_build:
strategy:
matrix:
swift:
- "5.1"
- "5.2"
- "5.3"
- "5.4"
- "5.5"
- "5.6"
runs-on: ubuntu-latest
container:
image: swift:${{ matrix.swift }}
steps:
- uses: actions/checkout@v2
- name: Run tests
run: swift test --enable-test-discovery
windows_build:
strategy:
matrix:
swift:
- "5.5"
- "5.6"
runs-on: windows-2019
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v2
- uses: MaxDesiatov/swift-windows-action@v1
with:
shell-action: swift build
swift-version: ${{ matrix.swift }}
- name: Run tests
run: swift test --enable-test-discovery