Skip to content

Commit 36238e3

Browse files
committed
CI: Consolidate manylinux builds, uniformize naming
1 parent ace0167 commit 36238e3

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

.github/workflows/wheels.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
jobs:
18-
build_sdist:
18+
build-sdist:
1919
name: Build sdist
2020
runs-on: ubuntu-latest
2121
steps:
@@ -27,35 +27,37 @@ jobs:
2727
name: sdist
2828
path: ./dist/*.tar.gz
2929

30-
build_wheels:
30+
build-wheel:
3131
name: Build wheel for ${{ matrix.python }}-${{ matrix.buildplat[1] }}
3232
runs-on: ${{ matrix.buildplat[0] }}
3333
strategy:
3434
fail-fast: false
3535
matrix:
3636
buildplat:
37-
- [ubuntu-20.04, manylinux_x86_64]
3837
- [ubuntu-20.04, musllinux_x86_64]
3938
- [macos-12, macosx_*]
4039
- [windows-2019, win_amd64]
4140
python: ["cp37", "cp38", "cp39", "cp310", "cp311"]
41+
include:
42+
# Manylinux builds are cheap, do all in one
43+
- {buildplat: ["ubuntu-20.04", "manylinux_x86_64"], python: "*"}
4244

4345
steps:
4446
- uses: actions/checkout@v3
4547

46-
- name: Build wheels
48+
- name: Build wheel(s)
4749
run: pipx run cibuildwheel
4850
env:
4951
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
5052

5153
- uses: actions/upload-artifact@v3
5254
with:
53-
name: ${{ matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
55+
name: ${{ matrix.python == '*' && 'all' || matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
5456
path: ./wheelhouse/*.whl
5557

5658
test-sdist:
5759
name: Test sdist
58-
needs: [build_sdist]
60+
needs: [build-sdist]
5961
runs-on: ubuntu-latest
6062
steps:
6163
- uses: actions/download-artifact@v3
@@ -74,3 +76,15 @@ jobs:
7476
run: pip install pytest
7577
- name: Run tests
7678
run: pytest -v --pyargs nitime
79+
80+
pre-publish:
81+
runs-on: ubuntu-latest
82+
needs: [test-sdist, build-wheel]
83+
steps:
84+
- uses: actions/download-artifact@v3
85+
with:
86+
path: dist/
87+
- run: ls -lR
88+
- run: mv dist/*/*.{tar.gz,whl} dist
89+
- run: rmdir dist/*/
90+
- run: ls -lR

0 commit comments

Comments
 (0)