Skip to content

Commit 02ea37e

Browse files
committed
Fix build
1 parent 6a6f53b commit 02ea37e

1 file changed

Lines changed: 17 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
# Taken from osqp-python
2-
31
name: Build Wheels
42

53
on:
6-
# Triggers the workflow on push or pull request events
74
push:
85
branches:
96
- "*"
@@ -18,14 +15,15 @@ jobs:
1815
runs-on: ubuntu-latest
1916
strategy:
2017
fail-fast: false
18+
2119
steps:
22-
- uses: actions/checkout@master
20+
- uses: actions/checkout@v4
2321
with:
24-
submodules: "recursive"
22+
submodules: recursive
2523

2624
- name: Build source and wheel
2725
run: |
28-
python -m pip install build
26+
python -m pip install --upgrade pip build
2927
python -m build --outdir=wheelhouse
3028
3129
- name: Upload sdist and wheel to github
@@ -38,6 +36,7 @@ jobs:
3836
build_wheels:
3937
name: Building wheels on ${{ matrix.os }}
4038
runs-on: ${{ matrix.os }}
39+
4140
strategy:
4241
fail-fast: false
4342
matrix:
@@ -49,12 +48,22 @@ jobs:
4948
fetch-depth: 0
5049
submodules: true
5150

52-
- uses: pypa/cibuildwheel@v2.21
51+
- name: Cache cibuildwheel
52+
uses: actions/cache@v4
53+
with:
54+
path: |
55+
~/.cache/cibuildwheel
56+
~/Library/Caches/cibuildwheel
57+
key: cibuildwheel-${{ runner.os }}
58+
59+
- name: Build wheels
60+
uses: pypa/cibuildwheel@v2.21
5361
env:
5462
CIBW_SKIP: "pp38-*"
63+
CIBW_BUILD_VERBOSITY: 1
5564

5665
- name: Upload wheels
5766
uses: actions/upload-artifact@v4
5867
with:
5968
name: cibw-wheels-${{ matrix.os }}
60-
path: wheelhouse/*.whl
69+
path: wheelhouse/*.whl

0 commit comments

Comments
 (0)