Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 35.2k
GH-139596: Cease caching config.cache & ccache in GH Actions#139623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -42,11 +42,6 @@ jobs: | ||||||
| mkdir "${WASI_SDK_PATH}" && \ | ||||||
| curl -s -S --location "https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VERSION}/wasi-sdk-${WASI_SDK_VERSION}.0-arm64-linux.tar.gz" | \ | ||||||
| tar --strip-components 1 --directory "${WASI_SDK_PATH}" --extract --gunzip | ||||||
| - name: "Configure ccache action" | ||||||
| uses: hendrikmuhs/ccache-action@v1.2 | ||||||
| with: | ||||||
| save: ${{ github.event_name == 'push' }} | ||||||
| max-size: "200M" | ||||||
| - name: "Add ccache to PATH" | ||||||
| run: echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV" | ||||||
| - name: "Install Python" | ||||||
| @@ -55,24 +50,10 @@ jobs: | ||||||
| python-version: '3.x' | ||||||
| - name: "Runner image version" | ||||||
| run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV" | ||||||
| - name: "Restore Python build config.cache" | ||||||
| uses: actions/cache@v4 | ||||||
| with: | ||||||
| path: ${{ env.CROSS_BUILD_PYTHON }}/config.cache | ||||||
| # Include env.pythonLocation in key to avoid changes in environment when setup-python updates Python. | ||||||
| # Include the hash of `Tools/wasm/wasi/__main__.py` as it may change the environment variables. | ||||||
| # (Make sure to keep the key in sync with the other config.cache step below.) | ||||||
| key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ env.WASI_SDK_VERSION }}-${{ env.WASMTIME_VERSION }}-${{ inputs.config_hash }}-${{ hashFiles('Tools/wasm/wasi/__main__.py') }}-${{ env.pythonLocation }} | ||||||
| - name: "Configure build Python" | ||||||
| run: python3 Tools/wasm/wasi configure-build-python -- --config-cache --with-pydebug | ||||||
| - name: "Make build Python" | ||||||
| run: python3 Tools/wasm/wasi make-build-python | ||||||
| - name: "Restore host config.cache" | ||||||
| uses: actions/cache@v4 | ||||||
| with: | ||||||
| path: ${{ env.CROSS_BUILD_WASI }}/config.cache | ||||||
| # Should be kept in sync with the other config.cache step above. | ||||||
| key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ env.WASI_SDK_VERSION }}-${{ env.WASMTIME_VERSION }}-${{ inputs.config_hash }}-${{ hashFiles('Tools/wasm/wasi/__main__.py') }}-${{ env.pythonLocation }} | ||||||
| run: python3 Tools/wasm/wasi.py make-build-python | ||||||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like a merge misfire:
Suggested change
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, will include this in the followup too. | ||||||
| - name: "Configure host" | ||||||
| # `--with-pydebug` inferred from configure-build-python | ||||||
| run: python3 Tools/wasm/wasi configure-host -- --config-cache | ||||||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also remove
config-hashfrom reusable-context.yml?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and the
config_hashinput for some other reusables. Will open a followup.