Skip to content

Commit 5a190c1

Browse files
daxpryceCopilot
andcommitted
ci: update actions and fix wheel platform tags
- actions/upload-artifact v4 → v7 - actions/download-artifact v4 → v8 - astral-sh/setup-uv v6 → v8 - Add explicit container param for ARM Linux manylinux/musllinux builds - Filter out non-manylinux 'linux_*' wheels before upload (PyPI rejects them) - Filter out non-universal2 macOS wheels from universal2 builds Node.js 20 actions deprecated June 16, 2026; removed Sept 16, 2026. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d738fd1 commit 5a190c1

2 files changed

Lines changed: 29 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
artifact_name: dist-macos-universal2
5555
steps:
5656
- uses: actions/checkout@v6
57-
- uses: astral-sh/setup-uv@v6
57+
- uses: astral-sh/setup-uv@v8
5858
- name: Rust Unittests
5959
run: |
6060
cargo test --manifest-path packages/network_partitions/Cargo.toml
@@ -86,7 +86,19 @@ jobs:
8686
uv run python -m unittest
8787
shell: bash
8888

89-
- uses: actions/upload-artifact@v4
89+
- name: Remove non-manylinux Linux wheels
90+
if: ${{ startsWith(matrix.runner, 'ubuntu') }}
91+
run: |
92+
find target/wheels -name '*-linux_*.whl' -delete
93+
shell: bash
94+
95+
- name: Remove non-universal2 macOS wheels
96+
if: ${{ startsWith(matrix.runner, 'macos') && contains(matrix.target, 'universal2') }}
97+
run: |
98+
find target/wheels -name '*.whl' ! -name '*universal2*' -delete
99+
shell: bash
100+
101+
- uses: actions/upload-artifact@v7
90102
with:
91103
name: ${{ matrix.artifact_name }}
92104
path: |

.github/workflows/publish.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
artifact_name: dist-macos-universal2
7575
steps:
7676
- uses: actions/checkout@v6
77-
- uses: astral-sh/setup-uv@v6
77+
- uses: astral-sh/setup-uv@v8
7878

7979
- name: Rust Unittests
8080
run: |
@@ -107,7 +107,19 @@ jobs:
107107
uv run python -m unittest
108108
shell: bash
109109

110-
- uses: actions/upload-artifact@v4
110+
- name: Remove non-manylinux Linux wheels
111+
if: ${{ startsWith(matrix.runner, 'ubuntu') }}
112+
run: |
113+
find target/wheels -name '*-linux_*.whl' -delete
114+
shell: bash
115+
116+
- name: Remove non-universal2 macOS wheels
117+
if: ${{ startsWith(matrix.runner, 'macos') && contains(matrix.target, 'universal2') }}
118+
run: |
119+
find target/wheels -name '*.whl' ! -name '*universal2*' -delete
120+
shell: bash
121+
122+
- uses: actions/upload-artifact@v7
111123
with:
112124
name: ${{ matrix.artifact_name }}
113125
path: |
@@ -123,7 +135,7 @@ jobs:
123135
contents: write
124136
steps:
125137
- uses: actions/checkout@v6
126-
- uses: actions/download-artifact@v4
138+
- uses: actions/download-artifact@v8
127139
with:
128140
pattern: dist-*
129141
merge-multiple: true

0 commit comments

Comments
 (0)