Skip to content

Commit 4ecf6bf

Browse files
committed
include sdist in swmm-toolkit package
1 parent 3629ced commit 4ecf6bf

File tree

1 file changed

+30
-9
lines changed

1 file changed

+30
-9
lines changed

.github/workflows/build_wheel.yml

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,29 @@ jobs:
3737
name: nrtest-swmm-wheel
3838
path: nrtest-swmm/dist/*.whl
3939

40+
build_sdist:
41+
name: Build source distribution
42+
runs-on: ubuntu-latest
43+
defaults:
44+
run:
45+
working-directory: ./swmm-toolkit
46+
steps:
47+
- name: Checkout repo
48+
uses: actions/checkout@v5
49+
- name: Install Python
50+
uses: actions/setup-python@v5
51+
with:
52+
python-version: "3.12"
53+
- name: Build sdist
54+
run: |
55+
pip install build
56+
python -m build --sdist --outdir ./dist
57+
- name: Upload sdist artifact
58+
uses: actions/upload-artifact@v4
59+
with:
60+
name: swmm-toolkit-sdist
61+
path: swmm-toolkit/dist/*.tar.gz
62+
4063
build_wheels:
4164
runs-on: ${{ matrix.os }}
4265
strategy:
@@ -64,13 +87,10 @@ jobs:
6487
# skip 3.8 and any free threaded variants
6588
CIBW_SKIP: cp38-* cp3??t-*
6689
CIBW_ARCHS: native
67-
# Will avoid testing on emulated architectures
68-
# Skip trying to test arm64 builds on Intel Macs
69-
CIBW_TEST_SKIP: "*-*linux_{aarch64,ppc64le,s390x} *-macosx_universal2:arm64"
7090
CIBW_BUILD_VERBOSITY: 1
7191
- uses: actions/upload-artifact@v4
7292
with:
73-
name: wheelhouse_${{ matrix.os }}
93+
name: swmm-toolkit-bdist-${{ matrix.os }}
7494
path: ./wheelhouse/*.whl
7595

7696
merge_wheels:
@@ -79,16 +99,17 @@ jobs:
7999
needs:
80100
- build_wheels
81101
steps:
82-
- name: Download all wheel artifacts
102+
- name: Download all distribution artifacts
83103
uses: actions/download-artifact@v5
84104
with:
85-
path: wheelhouse
86-
pattern: wheelhouse*
105+
path: dist
106+
pattern: swmm-toolkit-*dist*
87107
merge-multiple: true
108+
88109
- name: Upload consolidated archive
89110
uses: actions/upload-artifact@v4
90111
with:
91-
name: all_swmm_toolkit_wheels
92-
path: ./wheelhouse/*.whl
112+
name: swmm_toolkit_dist
113+
path: ./dist/*
93114

94115

0 commit comments

Comments
 (0)