| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c2de1fa commit aab153e
7 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -100,9 +100,9 @@ jobs: | |||
| 100 | 100 | needs: build-tarball | |
| 101 | 101 | runs-on: ubuntu-24.04 | |
| 102 | 102 | env: | |
| 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' }} | ||
| 106 | 106 | SCCACHE_IDLE_TIMEOUT: '0' | |
| 107 | 107 | steps: | |
| 108 | 108 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
@@ -120,6 +120,7 @@ jobs: | |||
| 120 | 120 | python-version: ${{ env.PYTHON_VERSION }} | |
| 121 | 121 | allow-prereleases: true | |
| 122 | 122 | - name: Set up sccache | |
| 123 | + if: github.base_ref == 'main' || github.ref_name == 'main' | ||
| 123 | 124 | uses: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9 | |
| 124 | 125 | with: | |
| 125 | 126 | version: v0.12.0 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,9 +37,9 @@ env: | |||
| 37 | 37 | PYTHON_VERSION: '3.14' | |
| 38 | 38 | FLAKY_TESTS: keep_retrying | |
| 39 | 39 | CLANG_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' }} | ||
| 43 | 43 | SCCACHE_IDLE_TIMEOUT: '0' | |
| 44 | 44 | ||
| 45 | 45 | permissions: | |
@@ -63,6 +63,7 @@ jobs: | |||
| 63 | 63 | python-version: ${{ env.PYTHON_VERSION }} | |
| 64 | 64 | allow-prereleases: true | |
| 65 | 65 | - name: Set up sccache | |
| 66 | + if: github.base_ref == 'main' || github.ref_name == 'main' | ||
| 66 | 67 | uses: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9 | |
| 67 | 68 | with: | |
| 68 | 69 | version: v0.12.0 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,9 +37,9 @@ env: | |||
| 37 | 37 | PYTHON_VERSION: '3.14' | |
| 38 | 38 | FLAKY_TESTS: keep_retrying | |
| 39 | 39 | CLANG_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' }} | ||
| 43 | 43 | SCCACHE_IDLE_TIMEOUT: '0' | |
| 44 | 44 | ||
| 45 | 45 | permissions: | |
@@ -63,6 +63,7 @@ jobs: | |||
| 63 | 63 | python-version: ${{ env.PYTHON_VERSION }} | |
| 64 | 64 | allow-prereleases: true | |
| 65 | 65 | - name: Set up sccache | |
| 66 | + if: github.base_ref == 'main' || github.ref_name == 'main' | ||
| 66 | 67 | uses: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9 | |
| 67 | 68 | with: | |
| 68 | 69 | version: v0.12.0 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,9 +34,9 @@ env: | |||
| 34 | 34 | PYTHON_VERSION: '3.14' | |
| 35 | 35 | FLAKY_TESTS: keep_retrying | |
| 36 | 36 | CLANG_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' }} | ||
| 40 | 40 | SCCACHE_IDLE_TIMEOUT: '0' | |
| 41 | 41 | ||
| 42 | 42 | permissions: | |
@@ -60,6 +60,7 @@ jobs: | |||
| 60 | 60 | python-version: ${{ env.PYTHON_VERSION }} | |
| 61 | 61 | allow-prereleases: true | |
| 62 | 62 | - name: Set up sccache | |
| 63 | + if: github.base_ref == 'main' || github.ref_name == 'main' | ||
| 63 | 64 | uses: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9 | |
| 64 | 65 | with: | |
| 65 | 66 | version: v0.12.0 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,9 +34,9 @@ env: | |||
| 34 | 34 | PYTHON_VERSION: '3.14' | |
| 35 | 35 | FLAKY_TESTS: keep_retrying | |
| 36 | 36 | CLANG_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' }} | ||
| 40 | 40 | SCCACHE_IDLE_TIMEOUT: '0' | |
| 41 | 41 | ||
| 42 | 42 | permissions: | |
@@ -65,6 +65,7 @@ jobs: | |||
| 65 | 65 | python-version: ${{ env.PYTHON_VERSION }} | |
| 66 | 66 | allow-prereleases: true | |
| 67 | 67 | - name: Set up sccache | |
| 68 | + if: github.base_ref == 'main' || github.ref_name == 'main' | ||
| 68 | 69 | uses: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9 | |
| 69 | 70 | with: | |
| 70 | 71 | version: v0.12.0 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -77,9 +77,9 @@ jobs: | |||
| 77 | 77 | fail-fast: false | |
| 78 | 78 | runs-on: macos-15 | |
| 79 | 79 | env: | |
| 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' }} | ||
| 83 | 83 | SCCACHE_IDLE_TIMEOUT: '0' | |
| 84 | 84 | steps: | |
| 85 | 85 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
@@ -94,6 +94,7 @@ jobs: | |||
| 94 | 94 | - name: Set up Xcode ${{ env.XCODE_VERSION }} | |
| 95 | 95 | run: sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app | |
| 96 | 96 | - name: Set up sccache | |
| 97 | + if: github.base_ref == 'main' || github.ref_name == 'main' | ||
| 97 | 98 | uses: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9 | |
| 98 | 99 | with: | |
| 99 | 100 | version: v0.12.0 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -175,6 +175,7 @@ jobs: | |||
| 175 | 175 | authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| 176 | 176 | ||
| 177 | 177 | - name: Configure sccache | |
| 178 | + if: github.base_ref == 'main' || github.ref_name == 'main' | ||
| 178 | 179 | uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 | |
| 179 | 180 | with: | |
| 180 | 181 | script: | | |
| Back | FazBrowse Home | New Git URL |
0 commit comments