Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,14 @@ jobs:
# This is probably something to do with \ vs / in paths...
- run: echo "PKG_CONFIG_PATH=${{ github.workspace }}/.local/lib/pkgconfig" >> $env:GITHUB_ENV
if: ${{ startsWith(matrix.os, 'windows') }}
- uses: actions/cache@v6
with:
path: ${{ runner.temp }}/cibw-cache
key: cibw-${{ runner.os }}-${{ hashFiles('scripts/*') }}
- name: Build wheels
uses: pypa/cibuildwheel@v4.3.5
env:
CIBW_CACHE_PATH: ${{ runner.temp }}/cibw-cache
- uses: actions/upload-artifact@v7
with:
name: wheels-${{ matrix.os }}
Expand Down
12 changes: 12 additions & 0 deletions scripts/cibw_before_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ done

set -o xtrace

if [ -n "$CIBW_CACHE_PATH" ] && [ -d $CIBW_CACHE_PATH/.local ]
then
cp -av $CIBW_CACHE_PATH/.local $PREFIX
exit 0
fi

if [ $SKIP_GMP = "no" ]
then
GMP_VERSION=6.3.0
Expand Down Expand Up @@ -136,3 +142,9 @@ if [ "$OSTYPE" = "cygwin" ]
then
genlib libzz-0.dll
fi

if [ -n "$CIBW_CACHE_PATH" ] && [ ! -d $CIBW_CACHE_PATH/.local ]
then
rm -rf $CIBW_CACHE_PATH/.local
cp -av $PREFIX $CIBW_CACHE_PATH/.local
fi