-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (49 loc) · 1.68 KB
/
ci.yml
File metadata and controls
55 lines (49 loc) · 1.68 KB
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
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:
unit-tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- name: 'iOS 26.2, Xcode 26.2'
destination: 'OS=26.2,name=iPhone 17 Pro'
xcode: 'Xcode_26.2'
runsOn: macos-26
- name: 'macOS 26, Xcode 26.2'
destination: 'platform=macOS'
xcode: 'Xcode_26.2'
runsOn: macos-26
steps:
- uses: actions/checkout@v4
- name: 'Running unit tests on ${{ matrix.name }}'
run: |
set -o pipefail && \
xcodebuild clean test -resultBundlePath "TestResults-${{ matrix.name }}" -skipPackagePluginValidation -scheme "Networking" -destination "${{ matrix.destination }}" | tee "build-log-${{ matrix.name }}.txt" | xcpretty
# Missing Xcode 16 support
# https://github.com/kishikawakatsumi/xcresulttool/issues/765
# - uses: kishikawakatsumi/xcresulttool@v1
# with:
# path: 'TestResults-${{ matrix.name }}.xcresult'
# title: '${{ matrix.name }} Test Results'
# if: success() || failure()
- name: 'Upload Build Log'
uses: actions/upload-artifact@v4
with:
name: 'build-log-${{ matrix.name }}'
path: 'build-log-${{ matrix.name }}.txt'
if: success() || failure()