-
Notifications
You must be signed in to change notification settings - Fork 13
66 lines (62 loc) · 1.54 KB
/
test_swift.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
name: Swift
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
defaults:
run:
shell: bash
working-directory: swift
jobs:
build-ubuntu-latest:
name: Swift ${{ matrix.swift }} on ubuntu-latest
strategy:
matrix:
# ubuntu swift5.6及以下版本下载会报gpg签名错误,已知bug等官方解决
swift: ["5.7", "5.8", "5.9", "5.10"]
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
build-macos-latest:
name: Swift ${{ matrix.swift }} on macos-latest
strategy:
matrix:
swift: ["5.9", "5.10"]
fail-fast: false
runs-on: macos-latest
steps:
- uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v4
- name: Verify Xcode Version
run: xcodebuild -version
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
build-macos-11:
name: Swift ${{ matrix.swift }} on macos-11
strategy:
matrix:
swift: ["5.6", "5.7", "5.8"]
fail-fast: false
runs-on: macos-11
steps:
- uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v