3434jobs :
3535 build :
3636 name : Build iOS Example App
37- runs-on : macOS-15
37+ runs-on : macOS-26
38+ strategy :
39+ matrix :
40+ include :
41+ - name : static_frameworks
42+ use_frameworks : static
43+ - name : no_frameworks
44+ use_frameworks : " " # intentionally unset
3845 steps :
39- - uses : actions/checkout@v4
46+ - uses : actions/checkout@v6
4047 - uses : oven-sh/setup-bun@v2
4148
49+ - name : Set USE_FRAMEWORKS
50+ if : matrix.use_frameworks != ''
51+ run : echo "USE_FRAMEWORKS=${{ matrix.use_frameworks }}" >> $GITHUB_ENV
52+
4253 - name : Install npm dependencies (bun)
4354 run : bun install
4455
45- - name : Restore ccache
56+ - name : Install Ccache
4657 uses : hendrikmuhs/ccache-action@v1.2
58+ with :
59+ max-size : 1.5G
60+ key : ${{ runner.os }}-${{ matrix.use_frameworks }}-ccache-example-ios
61+ create-symlink : true
62+ - name : Setup ccache behavior
63+ run : |
64+ echo "CCACHE_SLOPPINESS=clang_index_store,file_stat_matches,include_file_ctime,include_file_mtime,ivfsoverlay,pch_defines,modules,system_headers,time_macros" >> $GITHUB_ENV
65+ echo "CCACHE_FILECLONE=true" >> $GITHUB_ENV
66+ echo "CCACHE_DEPEND=true" >> $GITHUB_ENV
67+ echo "CCACHE_INODECACHE=true" >> $GITHUB_ENV
4768
4869 - name : Setup Ruby (bundle)
4970 uses : ruby/setup-ruby@v1
@@ -52,26 +73,41 @@ jobs:
5273 bundler-cache : true
5374 working-directory : example
5475
76+ - name : Select Xcode 26.2
77+ run : sudo xcode-select -s "/Applications/Xcode_26.2.app/Contents/Developer"
78+
5579 - name : Restore Pods cache
56- uses : actions/cache@v4
80+ uses : actions/cache@v5
5781 with :
5882 path : example/ios/Pods
59- key : pods- ${{ runner.os }}-${{ hashFiles('**/Podfile.lock', '**/Gemfile.lock') }}
83+ key : ${{ runner.os }}-${{ matrix.use_frameworks }}-pods -${{ hashFiles('**/Podfile.lock', '**/Gemfile.lock') }}
6084 restore-keys : |
61- pods-${{ runner.os }}
62-
85+ ${{ runner.os }}-${{ matrix.use_frameworks }}-pods-
6386 - name : Install Pods
64- working-directory : example/ios
65- run : pod install
87+ working-directory : example
88+ run : bun pods
89+
90+ - name : Restore DerivedData cache
91+ uses : actions/cache@v5
92+ with :
93+ path : example/ios/build
94+ key : ${{ runner.os }}-${{ matrix.use_frameworks }}-dd-${{ hashFiles('**/Podfile.lock', '**/Gemfile.lock', '**/package.json', '**/bun.lock') }}-xcode26.2
95+ restore-keys : |
96+ ${{ runner.os }}-${{ matrix.use_frameworks }}-dd-
97+
6698 - name : Build App
6799 working-directory : example/ios
68- run : " set -o pipefail && xcodebuild \
69- CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
70- -derivedDataPath build -UseModernBuildSystem=YES \
71- -workspace NitroSQLiteExample.xcworkspace \
72- -scheme NitroSQLiteExample \
73- -sdk iphonesimulator \
74- -configuration Debug \
75- -destination 'platform=iOS Simulator,name=iPhone 16' \
76- build \
77- CODE_SIGNING_ALLOWED=NO"
100+ run : |
101+ set -o pipefail
102+ xcodebuild \
103+ CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
104+ -derivedDataPath build -UseModernBuildSystem=YES \
105+ -workspace NitroSQLiteExample.xcworkspace \
106+ -scheme NitroSQLiteExample \
107+ -sdk iphonesimulator \
108+ -configuration Debug \
109+ -destination 'platform=iOS Simulator,name=iPhone 17 Pro' \
110+ -showBuildTimingSummary \
111+ ONLY_ACTIVE_ARCH=YES \
112+ build \
113+ CODE_SIGNING_ALLOWED=NO | xcbeautify --renderer github-actions
0 commit comments