Commit 5e9fa43e

5e9fa43e31c2Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 5 months ago · 1 file · ~1 modified

Description

Merge pull request #1427 from ryanseys/rs-ci-sccache-prestart

fix(ci): pre-start sccache server and raise startup timeout

Details

Commit
5e9fa43e31c2
Parent
d40bc31b97a3
Merge parent
1f73ebcb7064

.github/workflows/ci.ymlmodifiedView file

@@ -30,12 +30,20 @@
3030 # the compile step is in sccache's cacheable pattern.
3131 CC: sccache ${{ matrix.cc }}
3232 SCCACHE_GHA_ENABLED: "true"
33+ # Room for the slow GHA-backed server startup (default ~10s); keep it
34+ # alive across steps. See the pre-start step below.
35+ SCCACHE_STARTUP_TIMEOUT: "30"
36+ SCCACHE_IDLE_TIMEOUT: "0"
3337 steps:
3438 - uses: actions/checkout@v6
3539
3640 - name: Set up sccache
3741 uses: mozilla-actions/[email protected]
3842
43+ # Start the server once here so `make -j` clients don't race to start it.
44+ - name: Pre-start sccache server
45+ run: sccache --start-server
46+
3947 - name: Set up Ruby
4048 uses: ruby/setup-ruby@v1
4149 with: