-
Notifications
You must be signed in to change notification settings - Fork 309
59 lines (57 loc) · 1.58 KB
/
examples.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
name: Examples
on:
push:
branches: [ main ]
paths:
- 'Examples/**'
- '!Examples/**/*.md'
- 'Sources/Core/**'
- 'Sources/GeneratedServices/Calendar/**'
- 'Sources/GeneratedServices/Drive/**'
- 'Sources/GeneratedServices/Storage/**'
- 'Sources/GeneratedServices/YouTube/**'
- '*.podspec'
- '.github/workflows/examples.yml'
pull_request:
branches: [ main ]
paths:
- 'Examples/**'
- '!Examples/**/*.md'
- 'Sources/Core/**'
- 'Sources/GeneratedServices/Calendar/**'
- 'Sources/GeneratedServices/Drive/**'
- 'Sources/GeneratedServices/Storage/**'
- 'Sources/GeneratedServices/YouTube/**'
- '*.podspec'
- '.github/workflows/examples.yml'
schedule:
# Run the first and fifteenth of every month at 6:22 UTC
- cron: '22 6 1,15 * *'
jobs:
examples:
runs-on: macos-14
strategy:
fail-fast: false
matrix:
SAMPLE: ["Calendar", "Drive", "YouTube", "Storage"]
steps:
- uses: actions/checkout@v4
- name: Build Debug
run: |
set -eu
cd Examples/${{ matrix.SAMPLE }}Sample
pod install
xcodebuild \
-workspace "${{ matrix.SAMPLE }}Sample.xcworkspace" \
-scheme "${{ matrix.SAMPLE }}Sample" \
-configuration Debug \
build
- name: Build Release
run: |
set -eu
cd Examples/${{ matrix.SAMPLE }}Sample
xcodebuild \
-workspace "${{ matrix.SAMPLE }}Sample.xcworkspace" \
-scheme "${{ matrix.SAMPLE }}Sample" \
-configuration Release \
build