mirror of
https://github.com/python/cpython.git
synced 2025-12-07 13:50:06 +00:00
gh-139596: Cease caching config.cache & ccache in GH Actions (#141451)
This commit is contained in:
parent
1e4e59bb37
commit
181a2f4f2e
7 changed files with 1 additions and 29 deletions
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
|
@ -205,7 +205,6 @@ jobs:
|
||||||
free-threading: true
|
free-threading: true
|
||||||
uses: ./.github/workflows/reusable-macos.yml
|
uses: ./.github/workflows/reusable-macos.yml
|
||||||
with:
|
with:
|
||||||
config_hash: ${{ needs.build-context.outputs.config-hash }}
|
|
||||||
free-threading: ${{ matrix.free-threading }}
|
free-threading: ${{ matrix.free-threading }}
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
|
|
||||||
|
|
@ -237,7 +236,6 @@ jobs:
|
||||||
bolt: true
|
bolt: true
|
||||||
uses: ./.github/workflows/reusable-ubuntu.yml
|
uses: ./.github/workflows/reusable-ubuntu.yml
|
||||||
with:
|
with:
|
||||||
config_hash: ${{ needs.build-context.outputs.config-hash }}
|
|
||||||
bolt-optimizations: ${{ matrix.bolt }}
|
bolt-optimizations: ${{ matrix.bolt }}
|
||||||
free-threading: ${{ matrix.free-threading }}
|
free-threading: ${{ matrix.free-threading }}
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
|
|
@ -414,8 +412,6 @@ jobs:
|
||||||
needs: build-context
|
needs: build-context
|
||||||
if: needs.build-context.outputs.run-tests == 'true'
|
if: needs.build-context.outputs.run-tests == 'true'
|
||||||
uses: ./.github/workflows/reusable-wasi.yml
|
uses: ./.github/workflows/reusable-wasi.yml
|
||||||
with:
|
|
||||||
config_hash: ${{ needs.build-context.outputs.config-hash }}
|
|
||||||
|
|
||||||
test-hypothesis:
|
test-hypothesis:
|
||||||
name: "Hypothesis tests on Ubuntu"
|
name: "Hypothesis tests on Ubuntu"
|
||||||
|
|
@ -600,7 +596,6 @@ jobs:
|
||||||
uses: ./.github/workflows/reusable-san.yml
|
uses: ./.github/workflows/reusable-san.yml
|
||||||
with:
|
with:
|
||||||
sanitizer: ${{ matrix.sanitizer }}
|
sanitizer: ${{ matrix.sanitizer }}
|
||||||
config_hash: ${{ needs.build-context.outputs.config-hash }}
|
|
||||||
free-threading: ${{ matrix.free-threading }}
|
free-threading: ${{ matrix.free-threading }}
|
||||||
|
|
||||||
cross-build-linux:
|
cross-build-linux:
|
||||||
|
|
|
||||||
9
.github/workflows/reusable-context.yml
vendored
9
.github/workflows/reusable-context.yml
vendored
|
|
@ -17,9 +17,6 @@ on: # yamllint disable-line rule:truthy
|
||||||
# || 'falsy-branch'
|
# || 'falsy-branch'
|
||||||
# }}
|
# }}
|
||||||
#
|
#
|
||||||
config-hash:
|
|
||||||
description: Config hash value for use in cache keys
|
|
||||||
value: ${{ jobs.compute-changes.outputs.config-hash }} # str
|
|
||||||
run-docs:
|
run-docs:
|
||||||
description: Whether to build the docs
|
description: Whether to build the docs
|
||||||
value: ${{ jobs.compute-changes.outputs.run-docs }} # bool
|
value: ${{ jobs.compute-changes.outputs.run-docs }} # bool
|
||||||
|
|
@ -42,7 +39,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
outputs:
|
outputs:
|
||||||
config-hash: ${{ steps.config-hash.outputs.hash }}
|
|
||||||
run-ci-fuzz: ${{ steps.changes.outputs.run-ci-fuzz }}
|
run-ci-fuzz: ${{ steps.changes.outputs.run-ci-fuzz }}
|
||||||
run-docs: ${{ steps.changes.outputs.run-docs }}
|
run-docs: ${{ steps.changes.outputs.run-docs }}
|
||||||
run-tests: ${{ steps.changes.outputs.run-tests }}
|
run-tests: ${{ steps.changes.outputs.run-tests }}
|
||||||
|
|
@ -100,8 +96,3 @@ jobs:
|
||||||
GITHUB_EVENT_NAME: ${{ github.event_name }}
|
GITHUB_EVENT_NAME: ${{ github.event_name }}
|
||||||
CCF_TARGET_REF: ${{ github.base_ref || github.event.repository.default_branch }}
|
CCF_TARGET_REF: ${{ github.base_ref || github.event.repository.default_branch }}
|
||||||
CCF_HEAD_REF: ${{ github.event.pull_request.head.sha || github.sha }}
|
CCF_HEAD_REF: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||||
|
|
||||||
- name: Compute hash for config cache key
|
|
||||||
id: config-hash
|
|
||||||
run: |
|
|
||||||
echo "hash=${{ hashFiles('configure', 'configure.ac', '.github/workflows/build.yml') }}" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
|
||||||
3
.github/workflows/reusable-macos.yml
vendored
3
.github/workflows/reusable-macos.yml
vendored
|
|
@ -3,9 +3,6 @@ name: Reusable macOS
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
config_hash:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
free-threading:
|
free-threading:
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
|
||||||
3
.github/workflows/reusable-san.yml
vendored
3
.github/workflows/reusable-san.yml
vendored
|
|
@ -6,9 +6,6 @@ on:
|
||||||
sanitizer:
|
sanitizer:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
config_hash:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
free-threading:
|
free-threading:
|
||||||
description: Whether to use free-threaded mode
|
description: Whether to use free-threaded mode
|
||||||
required: false
|
required: false
|
||||||
|
|
|
||||||
3
.github/workflows/reusable-ubuntu.yml
vendored
3
.github/workflows/reusable-ubuntu.yml
vendored
|
|
@ -3,9 +3,6 @@ name: Reusable Ubuntu
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
config_hash:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
bolt-optimizations:
|
bolt-optimizations:
|
||||||
description: Whether to enable BOLT optimizations
|
description: Whether to enable BOLT optimizations
|
||||||
required: false
|
required: false
|
||||||
|
|
|
||||||
6
.github/workflows/reusable-wasi.yml
vendored
6
.github/workflows/reusable-wasi.yml
vendored
|
|
@ -2,10 +2,6 @@ name: Reusable WASI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
|
||||||
config_hash:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
FORCE_COLOR: 1
|
FORCE_COLOR: 1
|
||||||
|
|
@ -53,7 +49,7 @@ jobs:
|
||||||
- name: "Configure build Python"
|
- name: "Configure build Python"
|
||||||
run: python3 Tools/wasm/wasi configure-build-python -- --config-cache --with-pydebug
|
run: python3 Tools/wasm/wasi configure-build-python -- --config-cache --with-pydebug
|
||||||
- name: "Make build Python"
|
- name: "Make build Python"
|
||||||
run: python3 Tools/wasm/wasi.py make-build-python
|
run: python3 Tools/wasm/wasi make-build-python
|
||||||
- name: "Configure host"
|
- name: "Configure host"
|
||||||
# `--with-pydebug` inferred from configure-build-python
|
# `--with-pydebug` inferred from configure-build-python
|
||||||
run: python3 Tools/wasm/wasi configure-host -- --config-cache
|
run: python3 Tools/wasm/wasi configure-host -- --config-cache
|
||||||
|
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -135,7 +135,6 @@ Tools/unicode/data/
|
||||||
/config.log
|
/config.log
|
||||||
/config.status
|
/config.status
|
||||||
/config.status.lineno
|
/config.status.lineno
|
||||||
# hendrikmuhs/ccache-action@v1
|
|
||||||
/.ccache
|
/.ccache
|
||||||
/cross-build/
|
/cross-build/
|
||||||
/jit_stencils*.h
|
/jit_stencils*.h
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue