-
Notifications
You must be signed in to change notification settings - Fork 1.5k
89 lines (64 loc) · 2.53 KB
/
cache.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
name: Cache
on:
push:
branches:
- main
- more-ci-improvements
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build-cache:
name: build-cache
runs-on: macos-14
strategy:
matrix:
xcode: [15.2, 15.4, 16_beta_6]
steps:
- uses: actions/checkout@v4
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Cache derived data
uses: actions/cache@v3
with:
path: |
~/.derivedData
key: |
deriveddata-xcodebuild-${{ matrix.xcode }}-${{ hashFiles('**/*.swift') }}
restore-keys: |
deriveddata-xcodebuild-${{ matrix.xcode }}-
- name: Set IgnoreFileSystemDeviceInodeChanges flag
run: defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES
- name: Update mtime for incremental builds
uses: chetan/git-restore-mtime-action@v2
- name: Build iOS (Debug)
run: make CONFIG=Debug PLATFORM=iOS xcodebuild
- name: Build iOS (Release)
run: make CONFIG=Release PLATFORM=iOS xcodebuild
- name: Build macOS (Debug)
run: make CONFIG=Debug PLATFORM=macOS xcodebuild
- name: Build macOS (Release)
run: make CONFIG=Release PLATFORM=macOS xcodebuild
- name: Build macCatalyst (Debug)
run: make CONFIG=Debug PLATFORM=macCatalyst xcodebuild
- name: Build macCatalyst (Release)
run: make CONFIG=Release PLATFORM=macCatalyst xcodebuild
- name: Build watchOS (Debug)
run: make CONFIG=Debug PLATFORM=watchOS xcodebuild
- name: Build watchOS (Release)
run: make CONFIG=Release PLATFORM=watchOS xcodebuild
- name: Build tvOS (Debug)
run: make CONFIG=Debug PLATFORM=tvOS xcodebuild
- name: Build tvOS (Release)
run: make CONFIG=Release PLATFORM=tvOS xcodebuild
- name: Build visionOS (Debug)
run: make CONFIG=Debug PLATFORM=visionOS xcodebuild
- name: Build visionOS (Release)
run: make CONFIG=Release PLATFORM=visionOS xcodebuild
- name: Build Todos
run: make COMMAND=test CONFIG=Debug SCHEME=GitHub TEST_PLAN=Todos xcodebuild-example
- name: Build SpeechRecognition
run: make COMMAND=test CONFIG=Debug SCHEME=GitHub TEST_PLAN=SpeechRecognition xcodebuild-example
- name: Build SyncUps
run: make COMMAND=test CONFIG=Debug SCHEME=GitHub TEST_PLAN=SyncUps xcodebuild-example