-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (41 loc) · 1.51 KB
/
Copy pathbuild.yml
File metadata and controls
52 lines (41 loc) · 1.51 KB
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
name: Xcode build
on:
push:
branches: ["main", "dev"]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
name: "Cache Derived Data"
with:
path: |
~/Library/Developer/Xcode/DerivedData/GoMoney-*/Build
~/Library/Developer/Xcode/DerivedData/GoMoney-*/SourcePackages
key: ${{ runner.os }}-derivedData-cache-${{ hashFiles('GoMoney.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }}
restore-keys: |
${{ runner.os }}-derivedData-cache-
- uses: actions/cache@v4
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Avoid inode changes for DerivedData
run: defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode.app
- name: Xcode version
run: /usr/bin/xcodebuild -version
shell: bash
- name: Install Dependencies
run: |
pod install --repo-update
shell: bash
- name: Xcode iOS build
run: |
xcodebuild -workspace GoMoney.xcworkspace -scheme GoMoney -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.20' | xcpretty
- name: cache size
run: |
du -sh ~/Library/Developer/Xcode/DerivedData/GoMoney-*