Skip to content

Commit 567e377

Browse files
committed
Remove ccache — incompatible with xcodebuild
xcodebuild treats CC="ccache clang" as a single executable path, not a command + argument, so it fails with "No such file or directory". Xcode's incremental builds via DerivedData (persisted with clean: false) and Gradle's --build-cache already provide good caching on the self-hosted runner without ccache. https://claude.ai/code/session_017SFCjKGRBpHqDgu7ijoG5N
1 parent ab0ea5a commit 567e377

1 file changed

Lines changed: 1 addition & 32 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ concurrency:
1818
jobs:
1919
build:
2020
runs-on: self-hosted
21-
env:
22-
CCACHE_DIR: /tmp/ccache
2321
steps:
2422
- name: Checkout
2523
uses: actions/checkout@v4
@@ -37,18 +35,6 @@ jobs:
3735
- name: Typecheck files
3836
run: yarn tsc
3937

40-
- name: Setup ccache
41-
run: |
42-
if ! command -v ccache &> /dev/null; then
43-
echo "ccache not found — skipping"
44-
echo "CCACHE_AVAILABLE=false" >> $GITHUB_ENV
45-
else
46-
ccache --set-config=max_size=5G
47-
ccache --set-config=compression=true
48-
ccache -z
49-
echo "CCACHE_AVAILABLE=true" >> $GITHUB_ENV
50-
fi
51-
5238
- name: Install CocoaPods
5339
working-directory: apps/example/ios
5440
run: |
@@ -72,10 +58,6 @@ jobs:
7258
- name: Build example for iOS
7359
working-directory: apps/example/ios
7460
run: |
75-
if [ "$CCACHE_AVAILABLE" = "true" ]; then
76-
export CC="ccache clang"
77-
export CXX="ccache clang++"
78-
fi
7961
set -o pipefail && xcodebuild \
8062
-workspace example.xcworkspace \
8163
-scheme Example \
@@ -118,10 +100,6 @@ jobs:
118100
working-directory: packages/webgpu
119101
run: yarn test
120102

121-
- name: ccache stats (iOS)
122-
if: env.CCACHE_AVAILABLE == 'true'
123-
run: ccache -s
124-
125103
- name: Detect ANDROID_HOME
126104
run: |
127105
if [ -n "$ANDROID_HOME" ] && [ -d "$ANDROID_HOME" ]; then
@@ -161,13 +139,4 @@ jobs:
161139
working-directory: apps/example/android
162140
env:
163141
JAVA_OPTS: "-XX:MaxHeapSize=6g"
164-
run: |
165-
if [ "$CCACHE_AVAILABLE" = "true" ]; then
166-
export CC="ccache clang"
167-
export CXX="ccache clang++"
168-
fi
169-
./gradlew assembleDebug --build-cache --warning-mode all
170-
171-
- name: ccache stats (Android)
172-
if: env.CCACHE_AVAILABLE == 'true'
173-
run: ccache -s
142+
run: ./gradlew assembleDebug --build-cache --warning-mode all

0 commit comments

Comments
 (0)