3737 - ' **/nitro.json'
3838
3939env :
40- USE_CCACHE : 1
4140 XCODE_VERSION : ' 26.5'
42- IOS_SIMULATOR_DESTINATION : ' platform=iOS Simulator,arch=arm64,name=iPhone 17 Pro '
41+ IOS_SIMULATOR_DESTINATION : ' generic/ platform=iOS Simulator'
4342
4443jobs :
4544 build :
5857
5958 - name : Set USE_FRAMEWORKS
6059 if : matrix.use_frameworks != ''
61- run : echo "USE_FRAMEWORKS=${{ matrix.use_frameworks }}" >> $GITHUB_ENV
60+ run : echo "USE_FRAMEWORKS=${{ matrix.use_frameworks }}" >> " $GITHUB_ENV"
6261
6362 - name : Install npm dependencies (bun)
6463 run : bun install
@@ -68,13 +67,14 @@ jobs:
6867 with :
6968 max-size : 1.5G
7069 key : ${{ runner.os }}-${{ runner.arch }}-xcode${{ env.XCODE_VERSION }}-${{ matrix.use_frameworks }}-ccache-example-ios
71- create-symlink : true
7270 - name : Setup ccache behavior
7371 run : |
74- 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
75- echo "CCACHE_FILECLONE=true" >> $GITHUB_ENV
76- echo "CCACHE_DEPEND=true" >> $GITHUB_ENV
77- echo "CCACHE_INODECACHE=true" >> $GITHUB_ENV
72+ {
73+ echo "CCACHE_SLOPPINESS=clang_index_store,file_stat_matches,include_file_ctime,include_file_mtime,ivfsoverlay,pch_defines,modules,system_headers,time_macros"
74+ echo "CCACHE_FILECLONE=true"
75+ echo "CCACHE_DEPEND=true"
76+ echo "CCACHE_INODECACHE=true"
77+ } >> "$GITHUB_ENV"
7878
7979 - name : Setup Ruby (bundle)
8080 uses : ruby/setup-ruby@v1
@@ -110,7 +110,8 @@ jobs:
110110 run : |
111111 set -o pipefail
112112 xcodebuild \
113- CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
113+ C_COMPILER_LAUNCHER="$(command -v ccache)" \
114+ CLANG_ENABLE_EXPLICIT_MODULES_WITH_COMPILER_LAUNCHER=YES \
114115 -derivedDataPath build -UseModernBuildSystem=YES \
115116 -workspace NitroExample.xcworkspace \
116117 -scheme NitroExample \
@@ -119,5 +120,6 @@ jobs:
119120 -destination '${{ env.IOS_SIMULATOR_DESTINATION }}' \
120121 -showBuildTimingSummary \
121122 ONLY_ACTIVE_ARCH=YES \
123+ ARCHS=arm64 \
122124 build \
123125 CODE_SIGNING_ALLOWED=NO | xcbeautify --renderer github-actions
0 commit comments