Skip to content

Commit b0fb88d

Browse files
fix: resolve CI failures with artifacts and macOS runner
Fixes multiple CI issues: - Fix artifact upload conflicts by giving each job a unique artifact name (dist-{os}-py{version}) to avoid conflicts with actions/upload-artifact@v3 - Update download step to collect all artifacts into dist folder - Replace deprecated macOS-11 runner with macOS-13 These changes address the artifact conflicts that were causing build failures and the macOS runner timeout issues. Note: C++ test failures and Python example test failures still need investigation as logs are not available from previous runs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5557dde commit b0fb88d

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/build_and_publish.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
strategy:
5454
fail-fast: false
5555
matrix:
56-
os: [ ubuntu-24.04, macOS-11 ]
56+
os: [ ubuntu-24.04, macOS-13 ]
5757
python-version: [ 36, 37, 38, 39, 310, 311 ]
5858

5959
steps:
@@ -73,7 +73,7 @@ jobs:
7373
- name: "Upload build artifacts (${{ matrix.os }}, py${{ matrix.python-version }})"
7474
uses: actions/upload-artifact@v4
7575
with:
76-
name: dist
76+
name: dist-${{ matrix.os }}-py${{ matrix.python-version }}
7777
path: ./wheelhouse/*.whl
7878

7979
make_sdist:
@@ -96,7 +96,7 @@ jobs:
9696
- name: "Upload build artifacts"
9797
uses: actions/upload-artifact@v4
9898
with:
99-
name: "dist"
99+
name: "dist-sdist"
100100
path: "dist/*.tar.gz"
101101

102102
publish_to_pypi:
@@ -115,8 +115,12 @@ jobs:
115115
- name: "Download build artifacts"
116116
uses: actions/download-artifact@v4
117117
with:
118-
name: "dist"
119-
path: "dist"
118+
path: "artifacts"
119+
120+
- name: "Collect all artifacts into dist folder"
121+
run: |
122+
mkdir -p dist
123+
find artifacts -type f \( -name '*.whl' -o -name '*.tar.gz' \) -exec cp {} dist/ \;
120124
121125
- name: "Publish to PyPI"
122126
if: startsWith(github.ref, 'refs/tags')

0 commit comments

Comments
 (0)