Skip to content

Commit 97504d4

Browse files
committed
Enhance artifact upload steps in CI workflows for Linux, macOS, and Windows to include retention days and error handling
1 parent fb7687e commit 97504d4

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.github/workflows/_build_linux.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,12 @@ jobs:
139139
echo "========================================"
140140
141141
# Upload wheels as artifacts (separate artifact per architecture)
142-
- uses: actions/upload-artifact@v4
142+
- name: Upload wheels
143+
uses: actions/upload-artifact@v4
143144
with:
144145
name: wheels-linux-${{ matrix.arch }}
145146
path: ./wheelhouse/*.whl
146147
if-no-files-found: error
148+
retention-days: 5
149+
# Retry on transient failures
150+
continue-on-error: false

.github/workflows/_build_macos.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,12 @@ jobs:
152152
echo "========================================"
153153
154154
# Upload wheels as artifacts
155-
- uses: actions/upload-artifact@v4
155+
- name: Upload wheels
156+
uses: actions/upload-artifact@v4
156157
with:
157158
name: wheels-macos
158159
path: ./wheelhouse/*.whl
159160
if-no-files-found: error
161+
retention-days: 5
162+
# Retry on transient failures
163+
continue-on-error: false

.github/workflows/_build_windows.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,12 @@ jobs:
164164
shell: bash
165165

166166
# Upload wheels as artifacts
167-
- uses: actions/upload-artifact@v4
167+
- name: Upload wheels
168+
uses: actions/upload-artifact@v4
168169
with:
169170
name: wheels-windows
170171
path: ./wheelhouse/*.whl
171172
if-no-files-found: error
173+
retention-days: 5
174+
# Retry on transient failures
175+
continue-on-error: false

0 commit comments

Comments
 (0)