Skip to content

Commit 461b9dd

Browse files
ci: simplify Linux wheel cache mounts
1 parent 66ebdfd commit 461b9dd

1 file changed

Lines changed: 4 additions & 29 deletions

File tree

.github/workflows/cibuildwheel.yaml

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,27 @@ on :
1010

1111
jobs:
1212
build_wheels:
13-
name: Build wheels on ${{ matrix.os }} (${{ matrix.arch }})
13+
name: Build wheels on ${{ matrix.os }}
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
fail-fast: false
1717
matrix:
1818
include:
1919
- os: ubuntu-latest
2020
arch: x86_64
21-
build: cp3{8,9,10,11,12,13}-*
2221
- os: ubuntu-24.04-arm
2322
arch: aarch64
24-
build: cp3{8,9,10,11,12,13}-*
2523
- os: macos-15-intel
2624
arch: x86_64
27-
build: cp3{8,9,10,11,12,13}-*
2825
- os: macos-14
2926
arch: arm64
30-
build: cp3{8,9,10,11,12,13}-*
3127
- os: windows-2022
3228
arch: AMD64
33-
build: cp3{8,9,10,11,12,13}-*
3429

3530
env:
3631
CONAN_NON_INTERACTIVE: 1
37-
# CI specific config: mount Conan, uv, and pip cache in Linux Docker
38-
CIBW_CONTAINER_ENGINE: >-
39-
docker; create_args: -v /home/runner/.conan2:/root/.conan2 -v /home/runner/.cache/uv:/root/.cache/uv
40-
-v /home/runner/.cache/pip:/root/.cache/pip
41-
CIBW_BUILD: ${{ matrix.build }}
32+
# CI specific config: mount Conan and uv cache in Linux Docker
33+
CIBW_CONTAINER_ENGINE: 'docker; create_args: -v /home/runner/.conan2:/root/.conan2'
4234
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
4335
CIBW_ARCHS_MACOS: ${{ matrix.arch }}
4436
CIBW_ARCHS_WINDOWS: ${{ matrix.arch }}
@@ -54,30 +46,13 @@ jobs:
5446
- name: Restore Conan cache
5547
uses: ./.github/actions/cache-restore
5648

57-
- name: Ensure pip cache directory exists
58-
if: runner.os == 'Linux'
59-
run: mkdir -p /home/runner/.cache/pip
60-
61-
- name: Restore pip cache
62-
if: runner.os == 'Linux'
63-
uses: actions/cache@v4
64-
with:
65-
path: /home/runner/.cache/pip
66-
key: pip-${{ runner.os }}-${{ matrix.arch }}-${{ hashFiles('pyproject.toml', 'uv.lock') }}
67-
restore-keys: |
68-
pip-${{ runner.os }}-${{ matrix.arch }}-
69-
pip-${{ runner.os }}-
70-
7149
- name: Build wheels
7250
uses: pypa/cibuildwheel@v3.3
7351

74-
- name: Upload wheels artifact
75-
id: upload_wheels
76-
uses: actions/upload-artifact@v4
52+
- uses: actions/upload-artifact@v4
7753
with:
7854
name: cibw-wheels-${{ matrix.os }}-${{ matrix.arch }}
7955
path: ./wheelhouse/*.whl
80-
compression-level: 0
8156

8257
# upload_pypi:
8358
# needs: [build_wheels]

0 commit comments

Comments
 (0)