Skip to content

Commit b626ab1

Browse files
committed
* better script that hopefully does not hit download limits
1 parent 1f987ed commit b626ab1

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
name: Build wheels on ${{ matrix.os }}
1414
runs-on: ${{ matrix.os }}
1515
strategy:
16+
fail-fast: false
1617
matrix:
1718
os: [ubuntu-latest, windows-latest, macos-latest, macos-14]
1819

@@ -21,8 +22,23 @@ jobs:
2122
with:
2223
submodules: recursive
2324

25+
- name: Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: '3.12'
29+
30+
- name: Cache cibuildwheel virtualenv
31+
uses: actions/cache@v4
32+
with:
33+
path: ~/Library/Caches/cibuildwheel
34+
key: ${{ runner.os }}-cibuildwheel-${{ hashFiles('**/pyproject.toml') }}
35+
restore-keys: |
36+
${{ runner.os }}-cibuildwheel-
37+
2438
- name: Build wheels
2539
uses: pypa/cibuildwheel@v2.22
40+
with:
41+
output-dir: wheelhouse
2642
env:
2743
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-*
2844
CIBW_SKIP: "*-musllinux_* *-win32 *-manylinux_i686"

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ skip = "*-musllinux_* *-win32 *-manylinux_i686"
5252
before-build = "./build.sh"
5353
test-requires = "numpy"
5454
test-command = "python -c 'import sharedmap; print(sharedmap.__version__)'"
55+
environment = { PIP_PREFER_BINARY = "1" }
56+
57+
[tool.cibuildwheel.environment]
58+
VIRTUALENV_PIP = "embed"
5559

5660
[tool.cibuildwheel.linux]
5761
archs = ["x86_64"]

0 commit comments

Comments
 (0)