Skip to content

Commit 074643a

Browse files
committed
unique artifact names and merge into one at the end
1 parent df73ee7 commit 074643a

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/build_wheels.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
env:
77
BUILD_TYPE: Release
88
MIN_CIBUILDWHEEL_VERSION: 2.16.2
9+
PYTHON_VERSION: 3.11
910

1011
jobs:
1112
build_sdist:
@@ -17,7 +18,7 @@ jobs:
1718
- uses: actions/setup-python@v5
1819
name: Install Python
1920
with:
20-
python-version: '3.x'
21+
python-version: ${{ env.PYTHON_VERSION }}
2122

2223
- name: Install build package
2324
run: python -m pip install build --user
@@ -27,6 +28,7 @@ jobs:
2728

2829
- uses: actions/upload-artifact@v4
2930
with:
31+
name: sdist
3032
path: dist/*.tar.gz
3133
compression-level: 0 # contents are already compressed
3234

@@ -96,5 +98,19 @@ jobs:
9698

9799
- uses: actions/upload-artifact@v4
98100
with:
101+
name: wheel-${{ matrix.config.os }}-${{ matrix.config.cibw-arch }}
99102
path: ./dist/*.whl
100103
compression-level: 0 # contents are already compressed
104+
105+
106+
aggregate_artifact:
107+
name: Aggregate artifact
108+
runs-on: ubuntu-latest
109+
needs: [build_sdist, build_wheels]
110+
steps:
111+
- name: Merge Artifacts
112+
uses: actions/upload-artifact/merge@v4
113+
with:
114+
name: python_wheels
115+
compression-level: 0
116+
delete-merged: true

0 commit comments

Comments
 (0)