-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (60 loc) · 1.75 KB
/
ci.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: "Networking CI"
on:
push:
branches:
- master
pull_request:
branches:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
macOS:
name: ${{ matrix.name }}
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- name: 'MacOS 13, Xcode 15.2, Swift 5.9.0'
xcode: 'Xcode_15.2'
runsOn: 'macos-13'
#- name: 'MacOS 13, Xcode 14.3.1, Swift 5.8.0'
# xcode: 'Xcode_14.3.1'
# runsOn: 'macos-13'
steps:
- uses: actions/checkout@v4
- name: ${{ matrix.name }}
run: swift test
iOS:
name: ${{ matrix.name }}
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- name: 'iOS 17.0'
destination: 'OS=17.0,name=iPhone 15 Pro'
xcode: 'Xcode_15.2'
runsOn: macos-13
- name: 'iOS 16.4'
destination: 'OS=16.4,name=iPhone 14 Pro'
xcode: 'Xcode_14.3.1'
runsOn: macos-13
- name: 'iOS 16.4 (Xcode 15)'
destination: 'OS=16.4,name=iPhone 14 Pro'
xcode: 'Xcode_15.2'
runsOn: macos-13
steps:
- uses: actions/checkout@v4
- name: ${{ matrix.name }}
run: |
set -o pipefail && \
xcodebuild -skipPackagePluginValidation -scheme "Networking" -destination "${{ matrix.destination }}" clean test | xcpretty