-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CI: Add ccache #47360
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
Closed
Closed
CI: Add ccache #47360
Changes from all commits
Commits
Show all changes
83 commits
Select commit
Hold shift + click to select a range
a5b2572
BLD: Add meson.build files
lithomas1 7191763
BLD: Python changes to make meson build work
lithomas1 65be7cc
Merge branch 'main' of https://github.com/pandas-dev/pandas into add-…
lithomas1 e5805fc
Revert moving generate_version.py to scripts
lithomas1 2e89b1f
Update for sas byteswap module
lithomas1 66346a4
Update
lithomas1 e267f87
Add pyproject.toml changes
lithomas1 545a91a
Merge branch 'meson-py-file-changes' into add-meson-build-files
lithomas1 f85bd93
Revert "Add pyproject.toml changes"
lithomas1 8896002
Merge branch 'main' into add-meson-build-files
lithomas1 399a93f
fix style?
lithomas1 d01fe1a
fix?
lithomas1 9b64577
Squashed commit of the following:
lithomas1 0de3320
Merge branch 'main' of https://github.com/pandas-dev/pandas into add-…
lithomas1 a26c9dd
catchsegv and prepare to disable asserts
lithomas1 cf24f5d
Go for green
lithomas1 c5cbcab
green take 2
lithomas1 f56d1d4
Go for green take 3
lithomas1 24d07c2
forgot something
lithomas1 8ceb278
get the code-checks passing too
lithomas1 7d26fca
Merge branch 'main' of https://github.com/pandas-dev/pandas into add-…
lithomas1 796d4c4
Fix the darn code checks
lithomas1 d2764ef
pls work
lithomas1 ec386f7
maybe get the last failure
lithomas1 069e76e
pls work
lithomas1 9068490
maybe maybe maybe???
lithomas1 6d18625
pls work
lithomas1 496294c
Respect pyproject.toml
lithomas1 2e642e8
Maybe bring back cython doctests
lithomas1 2157f06
Cleanup
lithomas1 f1555ee
Cleanup
lithomas1 057ea20
Merge branch 'main' into add-meson-build-files
lithomas1 beeab2a
Revert changes to 32 bit
lithomas1 4ecbb41
Fix tests and benchmarks
lithomas1 e4c5933
Merge branch 'main' of https://github.com/pandas-dev/pandas into add-…
lithomas1 d00d35a
Fix bad merge
lithomas1 a823304
Try to fix tests after sync
lithomas1 073e371
Fix package checks
lithomas1 55f7ec8
Update
lithomas1 5c5a0ac
Merge branch 'main' of https://github.com/pandas-dev/pandas into add-…
lithomas1 5570d9b
update deps
lithomas1 2b5505e
Update all deps
lithomas1 a7a2e6f
update the rest
lithomas1 6ef5a18
Go for green
lithomas1 9fd9d2b
Merge branch 'main' of https://github.com/pandas-dev/pandas into add-…
lithomas1 782a8c7
Disable arm64 wheels for now
lithomas1 3dae633
Merge branch 'main' into add-meson-build-files
lithomas1 f86b11a
Merge branch 'add-meson-build-files' of github.com:lithomas1/pandas i…
lithomas1 d7a7bf1
Add docs
lithomas1 597dd67
update test docs
lithomas1 aa94fc7
Merge branch 'main' into add-meson-build-files
lithomas1 77ed403
Update wheels.yml
lithomas1 a2a8361
Merge branch 'main' into add-meson-build-files
lithomas1 a01aee8
Bad merge
lithomas1 b0a2093
Merge branch 'main' into add-meson-build-files
lithomas1 c2291dc
Fix benchmarks
lithomas1 6663d31
Update test_rolling.py
lithomas1 094957d
Update test_rolling.py
lithomas1 4fe3ec0
Merge branch 'pandas-dev:main' into add-meson-build-files
lithomas1 0ee732d
Merge branch 'main' into add-meson-build-files
lithomas1 6291b9b
Adjust for editable support in meson-python
lithomas1 f6422e5
Merge branch 'main' into add-meson-build-files
lithomas1 e1f750e
fixes
lithomas1 f36e014
Merge branch 'add-meson-build-files' of github.com:lithomas1/pandas i…
lithomas1 6ed4572
Try again
lithomas1 792c9eb
bring back cov-config
lithomas1 d64acbf
syntax
lithomas1 de5c42f
fix arraymanager
lithomas1 a862508
go for green
lithomas1 320a64b
Merge branch 'add-meson-build-files' of github.com:lithomas1/pandas i…
lithomas1 a7f973a
Update docs
lithomas1 fe904c5
Merge branch 'main' of https://github.com/pandas-dev/pandas into add-…
lithomas1 1bdedc6
Update contributing_environment.rst
lithomas1 9e1ccc2
Merge branch 'add-meson-build-files' of github.com:lithomas1/pandas i…
lithomas1 09c573d
Merge branch 'main' of https://github.com/pandas-dev/pandas into add-…
lithomas1 9c63bb1
Re-enable more tests
lithomas1 a3e7ba2
fix code checks
lithomas1 7a5e1d8
Also install _util.py
lithomas1 7f6afda
Install in editable mode on Windows as well
lithomas1 ba7175f
CI: Use ccache
jonashaag bf153f9
Fixes
jonashaag a1ec809
Update run_tests.sh
jonashaag b366563
Update run_tests.sh
jonashaag File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# TODO: merge setup-ccache, setup-conda, build-pandas into a single action? | ||
name: Build pandas | ||
description: Rebuilds the C extensions and installs pandas | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Set up Ccache | ||
uses: ./.github/actions/setup-ccache | ||
|
||
- name: Build Pandas | ||
if : ${{ runner.os != 'Windows' }} | ||
run: | | ||
python -m pip install -ve . --no-build-isolation | ||
shell: bash -el {0} | ||
|
||
- name: Build Pandas (Windows) | ||
if: ${{ runner.os == 'Windows' }} | ||
run: | | ||
call micromamba activate test | ||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | ||
python -m pip install -ve . --no-build-isolation | ||
shell: cmd /C call {0} |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Setup sccache | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Make cache key | ||
id: cache-key | ||
run: | | ||
key="${{ runner.os }}--${{ runner.arch }}--${{ github.workflow }}" | ||
# Date: Daily invalidation of all ccaches as an extra safety measure. | ||
key="$key--$(/bin/date -u '+%Y%m%d')" | ||
# Python version: Separate caches for each Python version. This reduces the number of cache misses. | ||
key="$key--$(python -V)" | ||
# Cache version: Bump this number to manually invalidate the cache. | ||
key="$key--0" | ||
|
||
echo "cache-key=$key" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
# On Windows, for some reason the default temporary directory provided to sccache | ||
# may become read-only at some point. Work around by having a private tempdir. | ||
- name: Fix Windows temporary directory | ||
id: mktemp | ||
run: echo "tmpdir=$(cygpath -w $(mktemp -d))" >> $GITHUB_OUTPUT | ||
shell: bash | ||
if: ${{ runner.os == 'Windows' }} | ||
|
||
- name: Setup sccache | ||
uses: hendrikmuhs/ccache-action@v1.2 | ||
with: | ||
variant: sccache | ||
key: ${{ steps.cache-key.outputs.cache-key }} | ||
env: | ||
TMP: "${{ steps.mktemp.outputs.tmpdir }}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.