Skip to content

Commit 181a2f4

Browse files
authored
gh-139596: Cease caching config.cache & ccache in GH Actions (#141451)
1 parent 1e4e59b commit 181a2f4

File tree

7 files changed

+1
-29
lines changed

7 files changed

+1
-29
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ jobs:
205205
free-threading: true
206206
uses: ./.github/workflows/reusable-macos.yml
207207
with:
208-
config_hash: ${{ needs.build-context.outputs.config-hash }}
209208
free-threading: ${{ matrix.free-threading }}
210209
os: ${{ matrix.os }}
211210

@@ -237,7 +236,6 @@ jobs:
237236
bolt: true
238237
uses: ./.github/workflows/reusable-ubuntu.yml
239238
with:
240-
config_hash: ${{ needs.build-context.outputs.config-hash }}
241239
bolt-optimizations: ${{ matrix.bolt }}
242240
free-threading: ${{ matrix.free-threading }}
243241
os: ${{ matrix.os }}
@@ -414,8 +412,6 @@ jobs:
414412
needs: build-context
415413
if: needs.build-context.outputs.run-tests == 'true'
416414
uses: ./.github/workflows/reusable-wasi.yml
417-
with:
418-
config_hash: ${{ needs.build-context.outputs.config-hash }}
419415

420416
test-hypothesis:
421417
name: "Hypothesis tests on Ubuntu"
@@ -600,7 +596,6 @@ jobs:
600596
uses: ./.github/workflows/reusable-san.yml
601597
with:
602598
sanitizer: ${{ matrix.sanitizer }}
603-
config_hash: ${{ needs.build-context.outputs.config-hash }}
604599
free-threading: ${{ matrix.free-threading }}
605600

606601
cross-build-linux:

.github/workflows/reusable-context.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ on: # yamllint disable-line rule:truthy
1717
# || 'falsy-branch'
1818
# }}
1919
#
20-
config-hash:
21-
description: Config hash value for use in cache keys
22-
value: ${{ jobs.compute-changes.outputs.config-hash }} # str
2320
run-docs:
2421
description: Whether to build the docs
2522
value: ${{ jobs.compute-changes.outputs.run-docs }} # bool
@@ -42,7 +39,6 @@ jobs:
4239
runs-on: ubuntu-latest
4340
timeout-minutes: 10
4441
outputs:
45-
config-hash: ${{ steps.config-hash.outputs.hash }}
4642
run-ci-fuzz: ${{ steps.changes.outputs.run-ci-fuzz }}
4743
run-docs: ${{ steps.changes.outputs.run-docs }}
4844
run-tests: ${{ steps.changes.outputs.run-tests }}
@@ -100,8 +96,3 @@ jobs:
10096
GITHUB_EVENT_NAME: ${{ github.event_name }}
10197
CCF_TARGET_REF: ${{ github.base_ref || github.event.repository.default_branch }}
10298
CCF_HEAD_REF: ${{ github.event.pull_request.head.sha || github.sha }}
103-
104-
- name: Compute hash for config cache key
105-
id: config-hash
106-
run: |
107-
echo "hash=${{ hashFiles('configure', 'configure.ac', '.github/workflows/build.yml') }}" >> "$GITHUB_OUTPUT"

.github/workflows/reusable-macos.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: Reusable macOS
33
on:
44
workflow_call:
55
inputs:
6-
config_hash:
7-
required: true
8-
type: string
96
free-threading:
107
required: false
118
type: boolean

.github/workflows/reusable-san.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
sanitizer:
77
required: true
88
type: string
9-
config_hash:
10-
required: true
11-
type: string
129
free-threading:
1310
description: Whether to use free-threaded mode
1411
required: false

.github/workflows/reusable-ubuntu.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: Reusable Ubuntu
33
on:
44
workflow_call:
55
inputs:
6-
config_hash:
7-
required: true
8-
type: string
96
bolt-optimizations:
107
description: Whether to enable BOLT optimizations
118
required: false

.github/workflows/reusable-wasi.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ name: Reusable WASI
22

33
on:
44
workflow_call:
5-
inputs:
6-
config_hash:
7-
required: true
8-
type: string
95

106
env:
117
FORCE_COLOR: 1
@@ -53,7 +49,7 @@ jobs:
5349
- name: "Configure build Python"
5450
run: python3 Tools/wasm/wasi configure-build-python -- --config-cache --with-pydebug
5551
- name: "Make build Python"
56-
run: python3 Tools/wasm/wasi.py make-build-python
52+
run: python3 Tools/wasm/wasi make-build-python
5753
- name: "Configure host"
5854
# `--with-pydebug` inferred from configure-build-python
5955
run: python3 Tools/wasm/wasi configure-host -- --config-cache

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ Tools/unicode/data/
135135
/config.log
136136
/config.status
137137
/config.status.lineno
138-
# hendrikmuhs/ccache-action@v1
139138
/.ccache
140139
/cross-build/
141140
/jit_stencils*.h

0 commit comments

Comments
 (0)