Skip to content

Commit 96cfdd7

Browse files
committed
fix(ci): disable sccache on the dockcross/Linux-host builds (sccache crashed in-container)
The phase-2 cross-compile caching broke the dockcross builds: inside the manylinux container the fetched sccache panicked while wrapping the cross-compiler (log: a Rust backtrace + "Run with SCCACHE_LOG=debug", failing ggml.c.o), and because sccache is the compiler launcher that fails the whole build. The build.sh "inert-safe" guard only covers sccache being *absent*, not present-but-crashing. Remove the sccache env from the 4 dockcross jobs (manylinux_2_28 CUDA, manylinux2014, Linux aarch64, Android aarch64) and the Linux-host C++ test job. With no token reaching those jobs, build.sh skips the fetch and they compile normally (uncached, green) again. macOS caching (phase 1) is unaffected and stays — it uses native clang + brew sccache and is proven working/fast. The build.sh fetch logic remains but is dormant without a token. Dockcross caching is deferred: it needs an sccache-in-container health check (probe-compile before trusting the launcher) and SCCACHE_LOG=debug diagnosis of the cross-compiler panic. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JdLpWD8nedY7LwNnHefZLF
1 parent 5017ace commit 96cfdd7

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

.github/workflows/publish.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,6 @@ jobs:
171171
name: Cross-Compile manylinux_2_28 x86_64 (CUDA)
172172
needs: [startgate, build-webui]
173173
runs-on: ubuntu-latest
174-
env:
175-
USE_CACHE: ${{ github.event_name != 'workflow_dispatch' || inputs.use_cache }}
176-
SCCACHE_WEBDAV_ENDPOINT: https://cache.depot.dev
177-
SCCACHE_WEBDAV_TOKEN: ${{ secrets.DEPOT_TOKEN }}
178-
DOCKCROSS_ARGS: "-e SCCACHE_WEBDAV_ENDPOINT -e SCCACHE_WEBDAV_TOKEN -e USE_CACHE"
179174
steps:
180175
- uses: actions/checkout@v6
181176
- name: Download shared WebUI assets
@@ -205,11 +200,6 @@ jobs:
205200
name: Cross-Compile manylinux2014 x86_64
206201
needs: [startgate, build-webui]
207202
runs-on: ubuntu-latest
208-
env:
209-
USE_CACHE: ${{ github.event_name != 'workflow_dispatch' || inputs.use_cache }}
210-
SCCACHE_WEBDAV_ENDPOINT: https://cache.depot.dev
211-
SCCACHE_WEBDAV_TOKEN: ${{ secrets.DEPOT_TOKEN }}
212-
DOCKCROSS_ARGS: "-e SCCACHE_WEBDAV_ENDPOINT -e SCCACHE_WEBDAV_TOKEN -e USE_CACHE"
213203
steps:
214204
- uses: actions/checkout@v6
215205
- name: Download shared WebUI assets
@@ -239,11 +229,6 @@ jobs:
239229
name: Cross-Compile Linux aarch64 (LTS)
240230
needs: [startgate, build-webui]
241231
runs-on: ubuntu-latest
242-
env:
243-
USE_CACHE: ${{ github.event_name != 'workflow_dispatch' || inputs.use_cache }}
244-
SCCACHE_WEBDAV_ENDPOINT: https://cache.depot.dev
245-
SCCACHE_WEBDAV_TOKEN: ${{ secrets.DEPOT_TOKEN }}
246-
DOCKCROSS_ARGS: "-e SCCACHE_WEBDAV_ENDPOINT -e SCCACHE_WEBDAV_TOKEN -e USE_CACHE"
247232
steps:
248233
- uses: actions/checkout@v6
249234
- name: Download shared WebUI assets
@@ -273,11 +258,6 @@ jobs:
273258
name: Cross-Compile Android aarch64
274259
needs: [startgate, build-webui]
275260
runs-on: ubuntu-latest
276-
env:
277-
USE_CACHE: ${{ github.event_name != 'workflow_dispatch' || inputs.use_cache }}
278-
SCCACHE_WEBDAV_ENDPOINT: https://cache.depot.dev
279-
SCCACHE_WEBDAV_TOKEN: ${{ secrets.DEPOT_TOKEN }}
280-
DOCKCROSS_ARGS: "-e SCCACHE_WEBDAV_ENDPOINT -e SCCACHE_WEBDAV_TOKEN -e USE_CACHE"
281261
steps:
282262
- uses: actions/checkout@v6
283263
- name: Download shared WebUI assets
@@ -494,10 +474,6 @@ jobs:
494474
name: C++ Tests Ubuntu Latest x86_64
495475
needs: startgate
496476
runs-on: ubuntu-latest
497-
env:
498-
USE_CACHE: ${{ github.event_name != 'workflow_dispatch' || inputs.use_cache }}
499-
SCCACHE_WEBDAV_ENDPOINT: https://cache.depot.dev
500-
SCCACHE_WEBDAV_TOKEN: ${{ secrets.DEPOT_TOKEN }}
501477
steps:
502478
- uses: actions/checkout@v6
503479
- uses: actions/setup-java@v5

0 commit comments

Comments
 (0)