-
Notifications
You must be signed in to change notification settings - Fork 309
63 lines (60 loc) · 1.5 KB
/
service_generator.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
name: ServiceGenerator
on:
push:
branches: [ main ]
paths:
- 'Sources/Core/**'
- 'Sources/GeneratedServices/Discovery/**'
- 'Tools/**'
- '!Tools/**/*.md'
- '!Tools/**/*.py'
- '!Tools/GenerateCheckedInServices*'
- 'Package*.swift'
- '.github/workflows/service_generator.yml'
pull_request:
branches: [ main ]
paths:
- 'Sources/Core/**'
- 'Sources/GeneratedServices/Discovery/**'
- 'Tools/**'
- '!Tools/**/*.md'
- '!Tools/**/*.py'
- '!Tools/GenerateCheckedInServices*'
- 'Package*.swift'
- '.github/workflows/service_generator.yml'
schedule:
# Run the first and fifteenth of every month at 6:32 UTC
- cron: '32 6 1,15 * *'
jobs:
swift:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
CONFIGURATION: ["debug", "release"]
steps:
- uses: actions/checkout@v3
- name: Build ServiceGenerator
run: |
set -eu
cd Tools
swift build --configuration ${{ matrix.CONFIGURATION }}
xcodebuild:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
CONFIGURATION: ["Debug", "Release"]
steps:
- uses: actions/checkout@v3
- name: Build ServiceGenerator
run: |
set -eu
cd Tools
set -o pipefail
xcodebuild \
-scheme GTLR_ServiceGenerator \
-configuration ${{ matrix.CONFIGURATION }} \
-destination "platform=macOS" \
build \
| xcpretty