| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2ea16d3 commit cc4f7af
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -66,9 +66,9 @@ jobs: | |||
| 66 | 66 | needs: build-tarball | |
| 67 | 67 | runs-on: ubuntu-24.04 | |
| 68 | 68 | env: | |
| 69 | - CC: sccache clang | ||
| 70 | - CXX: sccache clang++ | ||
| 71 | - SCCACHE_GHA_ENABLED: 'true' | ||
| 69 | + CC: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang | ||
| 70 | + CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++ | ||
| 71 | + SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }} | ||
| 72 | 72 | steps: | |
| 73 | 73 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| 74 | 74 | with: | |
@@ -78,6 +78,7 @@ jobs: | |||
| 78 | 78 | with: | |
| 79 | 79 | python-version: ${{ env.PYTHON_VERSION }} | |
| 80 | 80 | - name: Set up sccache | |
| 81 | + if: github.base_ref == 'main' || github.ref_name == 'main' | ||
| 81 | 82 | uses: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9 | |
| 82 | 83 | with: | |
| 83 | 84 | version: v0.10.0 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,9 +36,9 @@ concurrency: | |||
| 36 | 36 | env: | |
| 37 | 37 | PYTHON_VERSION: '3.12' | |
| 38 | 38 | FLAKY_TESTS: keep_retrying | |
| 39 | - CC: sccache clang | ||
| 40 | - CXX: sccache clang++ | ||
| 41 | - SCCACHE_GHA_ENABLED: 'true' | ||
| 39 | + CC: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang | ||
| 40 | + CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++ | ||
| 41 | + SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }} | ||
| 42 | 42 | ||
| 43 | 43 | permissions: | |
| 44 | 44 | contents: read | |
@@ -57,6 +57,7 @@ jobs: | |||
| 57 | 57 | with: | |
| 58 | 58 | python-version: ${{ env.PYTHON_VERSION }} | |
| 59 | 59 | - name: Set up sccache | |
| 60 | + if: github.base_ref == 'main' || github.ref_name == 'main' | ||
| 60 | 61 | uses: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9 | |
| 61 | 62 | with: | |
| 62 | 63 | version: v0.10.0 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,9 +36,9 @@ concurrency: | |||
| 36 | 36 | env: | |
| 37 | 37 | PYTHON_VERSION: '3.12' | |
| 38 | 38 | FLAKY_TESTS: keep_retrying | |
| 39 | - CC: sccache clang | ||
| 40 | - CXX: sccache clang++ | ||
| 41 | - SCCACHE_GHA_ENABLED: 'true' | ||
| 39 | + CC: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang | ||
| 40 | + CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++ | ||
| 41 | + SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }} | ||
| 42 | 42 | ||
| 43 | 43 | permissions: | |
| 44 | 44 | contents: read | |
@@ -57,6 +57,7 @@ jobs: | |||
| 57 | 57 | with: | |
| 58 | 58 | python-version: ${{ env.PYTHON_VERSION }} | |
| 59 | 59 | - name: Set up sccache | |
| 60 | + if: github.base_ref == 'main' || github.ref_name == 'main' | ||
| 60 | 61 | uses: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9 | |
| 61 | 62 | with: | |
| 62 | 63 | version: v0.10.0 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,9 +27,9 @@ concurrency: | |||
| 27 | 27 | env: | |
| 28 | 28 | PYTHON_VERSION: '3.12' | |
| 29 | 29 | FLAKY_TESTS: keep_retrying | |
| 30 | - CC: sccache clang | ||
| 31 | - CXX: sccache clang++ | ||
| 32 | - SCCACHE_GHA_ENABLED: 'true' | ||
| 30 | + CC: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang | ||
| 31 | + CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++ | ||
| 32 | + SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }} | ||
| 33 | 33 | ||
| 34 | 34 | permissions: | |
| 35 | 35 | contents: read | |
@@ -47,6 +47,7 @@ jobs: | |||
| 47 | 47 | with: | |
| 48 | 48 | python-version: ${{ env.PYTHON_VERSION }} | |
| 49 | 49 | - name: Set up sccache | |
| 50 | + if: github.base_ref == 'main' || github.ref_name == 'main' | ||
| 50 | 51 | uses: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9 | |
| 51 | 52 | with: | |
| 52 | 53 | version: v0.10.0 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,9 +40,9 @@ jobs: | |||
| 40 | 40 | if: github.event.pull_request.draft == false | |
| 41 | 41 | runs-on: macos-14 | |
| 42 | 42 | env: | |
| 43 | - CC: sccache gcc | ||
| 44 | - CXX: sccache g++ | ||
| 45 | - SCCACHE_GHA_ENABLED: 'true' | ||
| 43 | + CC: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} gcc | ||
| 44 | + CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} g++ | ||
| 45 | + SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }} | ||
| 46 | 46 | steps: | |
| 47 | 47 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| 48 | 48 | with: | |
@@ -52,6 +52,7 @@ jobs: | |||
| 52 | 52 | with: | |
| 53 | 53 | python-version: ${{ env.PYTHON_VERSION }} | |
| 54 | 54 | - name: Set up sccache | |
| 55 | + if: github.base_ref == 'main' || github.ref_name == 'main' | ||
| 55 | 56 | uses: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9 | |
| 56 | 57 | with: | |
| 57 | 58 | version: v0.10.0 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments