-
-
Notifications
You must be signed in to change notification settings - Fork 6
79 lines (68 loc) · 1.89 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
# 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"
useCodecov: "false"
- xcode: "12.4" # Swift 5.3
macOS: "10.15"
- xcode: "12.5.1" # Swift 5.4
macOS: "11.0"
- xcode: "13.1" # Swift 5.5
macOS: "11.0"
- xcode: "13.4.1" # Swift 5.6
macOS: "12"
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: ./xcode_test.sh Xcode_${{ matrix.xcode }}
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