Skip to content

Commit 991e850

Browse files
committed
* update
1 parent 5f2f97e commit 991e850

1 file changed

Lines changed: 18 additions & 24 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,8 @@ on:
1010

1111
jobs:
1212
build_wheels:
13-
name: Build wheels on ${{ matrix.os }}
14-
runs-on: ${{ matrix.os }}
15-
strategy:
16-
fail-fast: false
17-
matrix:
18-
os: [ubuntu-latest]
13+
name: Build wheels on ubuntu-latest
14+
runs-on: ubuntu-latest
1915

2016
steps:
2117
- uses: actions/checkout@v4
@@ -33,39 +29,37 @@ jobs:
3329
- name: Cache cibuildwheel downloads
3430
uses: actions/cache@v4
3531
with:
36-
path: |
37-
~/.cache/cibuildwheel
38-
~/Library/Caches/cibuildwheel
32+
path: ~/.cache/cibuildwheel
3933
key: ${{ runner.os }}-${{ runner.arch }}-cibw-v1
4034
restore-keys: |
4135
${{ runner.os }}-${{ runner.arch }}-cibw-
4236
43-
- name: Pre-download virtualenv.pyz on macOS
44-
if: runner.os == 'macOS'
45-
shell: bash
46-
run: |
47-
set -euxo pipefail
48-
mkdir -p ~/Library/Caches/cibuildwheel
49-
if [ ! -f ~/Library/Caches/cibuildwheel/virtualenv-20.27.1.pyz ]; then
50-
curl -fL --retry 8 --retry-delay 5 --retry-all-errors \
51-
"https://github.com/pypa/get-virtualenv/blob/20.27.1/public/virtualenv.pyz?raw=true" \
52-
-o ~/Library/Caches/cibuildwheel/virtualenv-20.27.1.pyz
53-
fi
54-
5537
- name: Build wheels
5638
uses: pypa/cibuildwheel@v2.22
5739
env:
5840
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-*
59-
CIBW_SKIP: "*-musllinux_* *-win32 *-win_amd64 *-manylinux_i686"
41+
CIBW_SKIP: "*-musllinux_* *-manylinux_i686"
6042
CIBW_ARCHS_LINUX: x86_64
61-
CIBW_ARCHS_MACOS: x86_64 arm64
43+
CIBW_BEFORE_ALL_LINUX: >
44+
bash -lc '
45+
if command -v yum >/dev/null 2>&1; then
46+
yum install -y hwloc hwloc-devel pkgconfig;
47+
elif command -v dnf >/dev/null 2>&1; then
48+
dnf install -y hwloc hwloc-devel pkgconf-pkg-config;
49+
elif command -v apt-get >/dev/null 2>&1; then
50+
apt-get update &&
51+
apt-get install -y libhwloc-dev pkg-config;
52+
else
53+
echo "No supported package manager found for installing hwloc" >&2;
54+
exit 1;
55+
fi'
6256
CIBW_BEFORE_BUILD: ./build.sh
6357
CIBW_BUILD_VERBOSITY: 1
6458
CIBW_DEPENDENCY_VERSIONS: latest
6559

6660
- uses: actions/upload-artifact@v4
6761
with:
68-
name: wheels-${{ matrix.os }}
62+
name: wheels-linux
6963
path: ./wheelhouse/*.whl
7064

7165
build_sdist:

0 commit comments

Comments
 (0)