-
Notifications
You must be signed in to change notification settings - Fork 204
79 lines (71 loc) · 1.85 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
name: Main
on: [push, pull_request]
jobs:
mac-test:
name: Mac Test
runs-on: macos-latest
strategy:
matrix:
include:
- platform: macOS
scheme: "SWXMLHash OSX"
- platform: iOS
scheme: "SWXMLHash iOS"
- platform: tvOS
scheme: "SWXMLHash tvOS"
- platform: watchOS
scheme: "SWXMLHash watchOS"
swift:
- ~5.4
- ^6
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.0-beta'
- uses: mxcl/xcodebuild@v3.0.0
with:
platform: ${{ matrix.platform }}
workspace: "SWXMLHash.xcworkspace"
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