-
Notifications
You must be signed in to change notification settings - Fork 18
58 lines (55 loc) · 1.29 KB
/
xcodebuild.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
name: Xcode Build
on:
push:
branches:
- master
- 'release/**'
paths-ignore:
- 'README.md'
pull_request:
branches:
- master
- 'release/**'
paths-ignore:
- 'README.md'
workflow_dispatch:
jobs:
build-libraries:
name: Build Libraries
strategy:
matrix:
scheme:
- SwiftPackageList
- SwiftPackageListObjc
- SwiftPackageListUI
destination:
- platform=macOS
- platform=macOS,arch=x86_64,variant=Mac Catalyst
- name=iPhone 14
- name=Apple TV
- name=Apple Watch Series 6 (44mm)
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Build Scheme
run: |
xcodebuild \
-scheme ${{ matrix.scheme }} \
-destination '${{ matrix.destination }}'
test:
name: Test
needs: build-libraries
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Run tests
run: |
xcodebuild \
-scheme SwiftPackageList-Package \
-destination 'platform=macOS' \
-resultBundlePath TestResults \
test
- uses: kishikawakatsumi/xcresulttool@v1
with:
path: TestResults.xcresult
if: success() || failure()