Skip to content

Commit 4cbd9cc

Browse files
committed
Fix jobs structural error in publish workflow
1 parent f58d14a commit 4cbd9cc

1 file changed

Lines changed: 27 additions & 25 deletions

File tree

.github/workflows/publish.yml

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,38 @@ on:
55
tags:
66
- 'v*'
77
workflow_dispatch:
8-
build_wheels:
9-
name: Build wheels on ${{ matrix.os }}
10-
runs-on: ${{ matrix.os }}
11-
strategy:
12-
matrix:
13-
os: [ubuntu-latest, windows-latest, macos-latest]
148

15-
steps:
16-
- uses: actions/checkout@v4
9+
jobs:
10+
build_wheels:
11+
name: Build wheels on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
1716

18-
- name: Set up Python
19-
uses: actions/setup-python@v5
20-
with:
21-
python-version: "3.10"
17+
steps:
18+
- uses: actions/checkout@v4
2219

23-
- name: Install cibuildwheel
24-
run: pip install cibuildwheel==2.21.3
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.10"
2524

26-
- name: Build wheels
27-
run: cibuildwheel --output-dir wheelhouse
28-
env:
29-
CIBW_VENV_TOOL: venv
30-
CIBW_SKIP: "pp* *-musllinux*"
31-
CIBW_ARCHS_MACOS: "x86_64 arm64"
32-
CIBW_BEFORE_BUILD: "pip install pybind11"
25+
- name: Install cibuildwheel
26+
run: pip install cibuildwheel==2.21.3
3327

34-
- uses: actions/upload-artifact@v4
35-
with:
36-
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
37-
path: ./wheelhouse/*.whl
28+
- name: Build wheels
29+
run: cibuildwheel --output-dir wheelhouse
30+
env:
31+
CIBW_VENV_TOOL: venv
32+
CIBW_SKIP: "pp* *-musllinux*"
33+
CIBW_ARCHS_MACOS: "x86_64 arm64"
34+
CIBW_BEFORE_BUILD: "pip install pybind11"
35+
36+
- uses: actions/upload-artifact@v4
37+
with:
38+
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
39+
path: ./wheelhouse/*.whl
3840

3941
build_sdist:
4042
name: Build source distribution

0 commit comments

Comments
 (0)