-
Notifications
You must be signed in to change notification settings - Fork 205
67 lines (62 loc) · 1.5 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
name: Main
on: [push, pull_request]
jobs:
mac-test:
name: Mac Test
runs-on: macos-latest
strategy:
matrix:
platform:
- macOS
- watchOS
- tvOS
- iOS
- mac-catalyst
swift:
- ~5.4
- ^6
steps:
- uses: bamx23/xcodebuild@v3
with:
platform: ${{ matrix.platform }}
linux-test:
name: Linux Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- image: swift:5.8-focal
- image: swift:5.8-jammy
- image: swift:5.8-rhel-ubi9
- image: swift:5.9-focal
- image: swift:5.9-jammy
- image: swift:5.9-rhel-ubi9
- image: swift:5.10-focal
- image: swift:5.10-jammy
- image: swift:5.10-rhel-ubi9
- image: swiftlang/swift:nightly-focal
- image: swiftlang/swift:nightly-jammy
container:
image: ${{ matrix.image }}
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and test
run: |
swift build --build-tests
swift test
windows-test:
name: Windows Test
runs-on: windows-latest
steps:
- name: Install Swift
uses: compnerd/gha-setup-swift@main
with:
branch: swift-5.8-release
tag: 5.8-RELEASE
- name: Checkout
uses: actions/checkout@v4
- name: Build and test
run: swift test