File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,9 +100,9 @@ jobs:
100100needs : build-tarball
101101runs-on : ubuntu-24.04
102102env :
103- CC : sccache clang-19
104- CXX : sccache clang++-19
105- SCCACHE_GHA_ENABLED : ' true '
103+ CC : ${{ (github.base_ref == 'main' || github.ref_name == 'main') && ' sccache' || '' }} clang-19
104+ CXX : ${{ (github.base_ref == 'main' || github.ref_name == 'main') && ' sccache' || '' }} clang++-19
105+ SCCACHE_GHA_ENABLED : ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
106106SCCACHE_IDLE_TIMEOUT : ' 0'
107107steps :
108108 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -120,6 +120,7 @@ jobs:
120120python-version : ${{ env.PYTHON_VERSION }}
121121allow-prereleases : true
122122 - name : Set up sccache
123+ if : github.base_ref == 'main' || github.ref_name == 'main'
123124uses : Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
124125with :
125126version : v0.12.0
Original file line number Diff line number Diff line change 3737PYTHON_VERSION : ' 3.14'
3838FLAKY_TESTS : keep_retrying
3939CLANG_VERSION : ' 19'
40- CC : sccache clang-19
41- CXX : sccache clang++-19
42- SCCACHE_GHA_ENABLED : ' true '
40+ CC : ${{ (github.base_ref == 'main' || github.ref_name == 'main') && ' sccache' || '' }} clang-19
41+ CXX : ${{ (github.base_ref == 'main' || github.ref_name == 'main') && ' sccache' || '' }} clang++-19
42+ SCCACHE_GHA_ENABLED : ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
4343SCCACHE_IDLE_TIMEOUT : ' 0'
4444
4545permissions :
6363python-version : ${{ env.PYTHON_VERSION }}
6464allow-prereleases : true
6565 - name : Set up sccache
66+ if : github.base_ref == 'main' || github.ref_name == 'main'
6667uses : Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
6768with :
6869version : v0.12.0
Original file line number Diff line number Diff line change 3737PYTHON_VERSION : ' 3.14'
3838FLAKY_TESTS : keep_retrying
3939CLANG_VERSION : ' 19'
40- CC : sccache clang-19
41- CXX : sccache clang++-19
42- SCCACHE_GHA_ENABLED : ' true '
40+ CC : ${{ (github.base_ref == 'main' || github.ref_name == 'main') && ' sccache' || '' }} clang-19
41+ CXX : ${{ (github.base_ref == 'main' || github.ref_name == 'main') && ' sccache' || '' }} clang++-19
42+ SCCACHE_GHA_ENABLED : ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
4343SCCACHE_IDLE_TIMEOUT : ' 0'
4444
4545permissions :
6363python-version : ${{ env.PYTHON_VERSION }}
6464allow-prereleases : true
6565 - name : Set up sccache
66+ if : github.base_ref == 'main' || github.ref_name == 'main'
6667uses : Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
6768with :
6869version : v0.12.0
Original file line number Diff line number Diff line change 3434PYTHON_VERSION : ' 3.14'
3535FLAKY_TESTS : keep_retrying
3636CLANG_VERSION : ' 19'
37- CC : sccache clang-19
38- CXX : sccache clang++-19
39- SCCACHE_GHA_ENABLED : ' true '
37+ CC : ${{ (github.base_ref == 'main' || github.ref_name == 'main') && ' sccache' || '' }} clang-19
38+ CXX : ${{ (github.base_ref == 'main' || github.ref_name == 'main') && ' sccache' || '' }} clang++-19
39+ SCCACHE_GHA_ENABLED : ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
4040SCCACHE_IDLE_TIMEOUT : ' 0'
4141
4242permissions :
6060python-version : ${{ env.PYTHON_VERSION }}
6161allow-prereleases : true
6262 - name : Set up sccache
63+ if : github.base_ref == 'main' || github.ref_name == 'main'
6364uses : Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
6465with :
6566version : v0.12.0
Original file line number Diff line number Diff line change 3434PYTHON_VERSION : ' 3.14'
3535FLAKY_TESTS : keep_retrying
3636CLANG_VERSION : ' 19'
37- CC : sccache clang-19
38- CXX : sccache clang++-19
39- SCCACHE_GHA_ENABLED : ' true '
37+ CC : ${{ (github.base_ref == 'main' || github.ref_name == 'main') && ' sccache' || '' }} clang-19
38+ CXX : ${{ (github.base_ref == 'main' || github.ref_name == 'main') && ' sccache' || '' }} clang++-19
39+ SCCACHE_GHA_ENABLED : ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
4040SCCACHE_IDLE_TIMEOUT : ' 0'
4141
4242permissions :
6565python-version : ${{ env.PYTHON_VERSION }}
6666allow-prereleases : true
6767 - name : Set up sccache
68+ if : github.base_ref == 'main' || github.ref_name == 'main'
6869uses : Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
6970with :
7071version : v0.12.0
Original file line number Diff line number Diff line change 7777fail-fast : false
7878runs-on : macos-15
7979env :
80- CC : sccache gcc
81- CXX : sccache g++
82- SCCACHE_GHA_ENABLED : ' true '
80+ CC : ${{ (github.base_ref == 'main' || github.ref_name == 'main') && ' sccache' || '' }} gcc
81+ CXX : ${{ (github.base_ref == 'main' || github.ref_name == 'main') && ' sccache' || '' }} g++
82+ SCCACHE_GHA_ENABLED : ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
8383SCCACHE_IDLE_TIMEOUT : ' 0'
8484steps :
8585 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9494 - name : Set up Xcode ${{ env.XCODE_VERSION }}
9595run : sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app
9696 - name : Set up sccache
97+ if : github.base_ref == 'main' || github.ref_name == 'main'
9798uses : Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
9899with :
99100version : v0.12.0
Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ jobs:
175175authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
176176
177177 - name : Configure sccache
178+ if : github.base_ref == 'main' || github.ref_name == 'main'
178179uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
179180with :
180181script : |
You can’t perform that action at this time.
0 commit comments