-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (73 loc) · 2.37 KB
/
ci-release.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
80
name: CI - Release
on:
pull_request:
types:
- closed
branches:
- main
workflow_dispatch:
jobs:
build-swiftpm:
name: Build SwiftPM
uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm.yml@main
strategy:
matrix:
packages: [OversizeUI]
with:
package: ${{ matrix.packages }}
secrets: inherit
build-iOS-example:
name: Build iOS example
needs: build-swiftpm
uses: oversizedev/GithubWorkflows/.github/workflows/build-app.yml@main
strategy:
matrix:
destination: ['platform=iOS Simulator,name=iPhone 15 Pro,OS=17.2', 'platform=iOS Simulator,name=iPad Pro (12.9-inch) (6th generation),OS=17.2']
with:
path: Example/Example
scheme: Example (iOS)
destination: ${{ matrix.destination }}
secrets: inherit
build-macOS-example:
name: Build macOS examples
needs: build-swiftpm
uses: oversizedev/GithubWorkflows/.github/workflows/build-app.yml@main
with:
path: Example/Example
scheme: Example (macOS)
destination: platform=macOS,arch=arm64
secrets: inherit
build-tvOS-example:
name: Build tvOS examples
needs: build-swiftpm
uses: oversizedev/GithubWorkflows/.github/workflows/build-app.yml@main
strategy:
matrix:
destination: ['platform=tvOS Simulator,name=Apple TV 4K (3rd generation) (at 1080p),OS=17.2', 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation) (at 1080p),OS=16.4']
with:
path: Example/Example
scheme: Example (tvOS)
destination: ${{ matrix.destination }}
secrets: inherit
build-watchOS-example:
name: Build watchOS examples
needs: build-swiftpm
uses: oversizedev/GithubWorkflows/.github/workflows/build-app.yml@main
strategy:
matrix:
destination: ['platform=watchOS Simulator,name=Apple Watch SE (44mm) (2nd generation),OS=10.5']
with:
path: Example/Example
scheme: Example (watchOS)
destination: ${{ matrix.destination }}
secrets: inherit
bump:
name: Bump version
needs: [build-swiftpm, build-iOS-example, build-macOS-example, build-tvOS-example, build-watchOS-example]
uses: oversizedev/GithubWorkflows/.github/workflows/bump.yml@main
secrets: inherit
publish-docc:
name: Publish docc
needs: bump
uses: ./.github/workflows/publish-docc.yml
secrets: inherit