Skip to content

Commit 5115eff

Browse files
committed
workflows: reuse GPL source collection jobs
1 parent b6a3991 commit 5115eff

118 files changed

Lines changed: 754 additions & 2561 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# SPDX-FileCopyrightText: 2026 The RISE Project
2+
# SPDX-License-Identifier: MIT
3+
4+
name: Collect GPL sources
5+
6+
on:
7+
workflow_call:
8+
inputs:
9+
package:
10+
description: Package name used in the uploaded artifact name.
11+
required: true
12+
type: string
13+
version:
14+
description: Package version associated with the collected sources.
15+
required: true
16+
type: string
17+
packages:
18+
description: Space-separated installed RPM package names whose source RPMs are required.
19+
required: false
20+
default: gcc
21+
type: string
22+
23+
jobs:
24+
collect:
25+
name: Collect GPL sources for ${{ inputs.package }} ${{ inputs.version }}
26+
runs-on: ubuntu-24.04-riscv
27+
steps:
28+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
29+
with:
30+
persist-credentials: false
31+
32+
- uses: ./actions/collect-gpl-sources
33+
with:
34+
image: quay.io/pypa/manylinux_2_39_riscv64
35+
packages: ${{ inputs.packages }}
36+
output: gpl-sources.tar
37+
38+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
39+
with:
40+
name: ${{ inputs.package }}-${{ inputs.version }}-gpl-sources
41+
path: gpl-sources.tar
42+
if-no-files-found: error

‎.github/workflows/build-austin-dist.yml‎

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -220,35 +220,18 @@ jobs:
220220
--deselect test/functional/test_asyncio.py::test_native_asyncio_disabled
221221
222222
gpl_sources:
223+
name: Collect GPL sources for austin-dist ${{ matrix.version }}
223224
needs: [setup]
224225
if: needs.setup.outputs.versions != '[]'
225226
strategy:
226227
fail-fast: false
227228
matrix:
228229
version: ${{ fromJSON(needs.setup.outputs.versions) }}
229-
name: Collect GPL sources for austin-dist ${{ matrix.version }}
230-
runs-on: ubuntu-24.04-riscv
231-
232-
env:
233-
AUSTIN_DIST_VERSION: ${{ matrix.version }}
234-
235-
steps:
236-
- name: Checkout python-wheels
237-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
238-
with:
239-
persist-credentials: false
240-
241-
- uses: ./actions/collect-gpl-sources
242-
with:
243-
image: ${{ env.MANYLINUX_RISCV64_IMAGE }}
244-
packages: gcc
245-
output: gpl-sources.tar
246-
247-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
248-
with:
249-
name: austin-dist-${{ env.AUSTIN_DIST_VERSION }}-gpl-sources
250-
path: gpl-sources.tar
251-
if-no-files-found: error
230+
uses: $/.github/workflows/_collect-gpl-sources.yml
231+
with:
232+
package: austin-dist
233+
version: ${{ matrix.version }}
234+
packages: gcc
252235

253236
publish:
254237
name: Publish austin-dist ${{ matrix.version }}

‎.github/workflows/build-bitsandbytes.yml‎

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -113,30 +113,18 @@ jobs:
113113
if-no-files-found: error
114114

115115
gpl_sources:
116+
name: Collect GPL sources for bitsandbytes ${{ matrix.version }}
116117
needs: [setup]
117118
if: needs.setup.outputs.versions != '[]'
118119
strategy:
119120
fail-fast: false
120121
matrix:
121122
version: ${{ fromJSON(needs.setup.outputs.versions) }}
122-
name: Collect GPL sources (gcc) for bitsandbytes ${{ matrix.version }}
123-
runs-on: ubuntu-24.04-riscv
124-
env:
125-
BITSANDBYTES_VERSION: ${{ matrix.version }}
126-
127-
steps:
128-
- name: Collect gcc source RPM from manylinux_riscv64
129-
uses: riseproject-dev/python-wheels/actions/collect-gpl-sources@main
130-
with:
131-
image: ${{ env.MANYLINUX_RISCV64_IMAGE }}
132-
packages: gcc
133-
output: gpl-sources.tar
134-
135-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
136-
with:
137-
name: bitsandbytes-${{ env.BITSANDBYTES_VERSION }}-gpl-sources
138-
path: gpl-sources.tar
139-
if-no-files-found: error
123+
uses: $/.github/workflows/_collect-gpl-sources.yml
124+
with:
125+
package: bitsandbytes
126+
version: ${{ matrix.version }}
127+
packages: gcc
140128

141129
publish:
142130
name: Publish bitsandbytes ${{ matrix.version }}

‎.github/workflows/build-camb.yml‎

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -70,32 +70,19 @@ jobs:
7070
cibw-test-command: "cd camb/tests && python -m unittest camb_test mathutils_test"
7171

7272
gpl_sources:
73+
name: Collect GPL sources for camb ${{ matrix.version }}
7374
needs: [setup]
7475
if: needs.setup.outputs.versions != '[]'
7576
strategy:
7677
fail-fast: false
7778
matrix:
7879
version: ${{ fromJSON(needs.setup.outputs.versions) }}
79-
name: Collect GPL sources (gcc) for camb ${{ matrix.version }}
80-
runs-on: ubuntu-24.04-riscv
81-
82-
env:
83-
CAMB_VERSION: ${{ matrix.version }}
84-
85-
steps:
80+
uses: $/.github/workflows/_collect-gpl-sources.yml
81+
with:
82+
package: camb
83+
version: ${{ matrix.version }}
8684
# auditwheel vendors the image's libgfortran and libgomp into the wheel.
87-
- name: Collect gcc source RPM from manylinux_riscv64
88-
uses: riseproject-dev/python-wheels/actions/collect-gpl-sources@main
89-
with:
90-
image: ${{ env.MANYLINUX_RISCV64_IMAGE }}
91-
packages: gcc
92-
output: gpl-sources.tar
93-
94-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
95-
with:
96-
name: camb-${{ env.CAMB_VERSION }}-gpl-sources
97-
path: gpl-sources.tar
98-
if-no-files-found: error
85+
packages: gcc
9986

10087
publish:
10188
name: Publish camb ${{ matrix.version }}

‎.github/workflows/build-cantera.yml‎

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -326,36 +326,19 @@ jobs:
326326
if-no-files-found: error
327327

328328
gpl_sources:
329+
name: Collect GPL sources for cantera ${{ matrix.version }}
329330
needs: [setup]
330331
if: needs.setup.outputs.versions != '[]'
331332
strategy:
332333
fail-fast: false
333334
matrix:
334335
version: ${{ fromJSON(needs.setup.outputs.versions) }}
335-
name: Collect GPL sources
336-
runs-on: ubuntu-24.04-riscv
337-
338-
env:
339-
CANTERA_VERSION: ${{ matrix.version }}
340-
341-
steps:
342-
- name: Checkout python-wheels
343-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
344-
with:
345-
persist-credentials: false
346-
336+
uses: $/.github/workflows/_collect-gpl-sources.yml
337+
with:
338+
package: cantera
339+
version: ${{ matrix.version }}
347340
# OpenBLAS is compiled with gfortran, so auditwheel vendors the image's libgfortran.
348-
- uses: ./actions/collect-gpl-sources
349-
with:
350-
image: ${{ env.MANYLINUX_RISCV64_IMAGE }}
351-
packages: gcc
352-
output: gpl-sources.tar
353-
354-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
355-
with:
356-
name: cantera-${{ env.CANTERA_VERSION }}-gpl-sources
357-
path: gpl-sources.tar
358-
if-no-files-found: error
341+
packages: gcc
359342

360343
publish:
361344
name: Publish cantera ${{ matrix.version }}

‎.github/workflows/build-coacd.yml‎

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -147,37 +147,20 @@ jobs:
147147
EOF
148148
149149
gpl_sources:
150+
name: Collect GPL sources for coacd ${{ matrix.version }}
150151
needs: [setup]
151152
if: needs.setup.outputs.versions != '[]'
152153
strategy:
153154
fail-fast: false
154155
matrix:
155156
version: ${{ fromJSON(needs.setup.outputs.versions) }}
156-
name: Collect GPL sources
157-
runs-on: ubuntu-24.04-riscv
158-
159-
env:
160-
COACD_VERSION: ${{ matrix.version }}
161-
162-
steps:
163-
- name: Checkout python-wheels
164-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
165-
with:
166-
persist-credentials: false
167-
157+
uses: $/.github/workflows/_collect-gpl-sources.yml
158+
with:
159+
package: coacd
160+
version: ${{ matrix.version }}
168161
# setup.py passes -static-libgcc -static-libstdc++ on Linux, so
169162
# auditwheel vendors the image's libgcc_s/libstdc++ into the wheel.
170-
- uses: ./actions/collect-gpl-sources
171-
with:
172-
image: ${{ env.MANYLINUX_RISCV64_IMAGE }}
173-
packages: gcc
174-
output: gpl-sources.tar
175-
176-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
177-
with:
178-
name: coacd-${{ env.COACD_VERSION }}-gpl-sources
179-
path: gpl-sources.tar
180-
if-no-files-found: error
163+
packages: gcc
181164

182165
publish:
183166
name: Publish coacd ${{ matrix.version }}

‎.github/workflows/build-comfy-angle.yml‎

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -133,32 +133,19 @@ jobs:
133133
if-no-files-found: error
134134

135135
gpl_sources:
136+
name: Collect GPL sources for comfy-angle ${{ matrix.version }}
136137
needs: [setup]
137138
if: needs.setup.outputs.versions != '[]'
138139
strategy:
139140
fail-fast: false
140141
matrix:
141142
version: ${{ fromJSON(needs.setup.outputs.versions) }}
142-
name: Collect GPL sources (gcc) for comfy-angle ${{ matrix.version }}
143-
runs-on: ubuntu-24.04-riscv
144-
145-
env:
146-
COMFY_ANGLE_VERSION: ${{ matrix.version }}
147-
148-
steps:
143+
uses: $/.github/workflows/_collect-gpl-sources.yml
144+
with:
145+
package: comfy-angle
146+
version: ${{ matrix.version }}
149147
# The libraries are compiled with the image's GCC and link its libstdc++.
150-
- name: Collect gcc source RPM from manylinux_riscv64
151-
uses: riseproject-dev/python-wheels/actions/collect-gpl-sources@main
152-
with:
153-
image: ${{ env.MANYLINUX_RISCV64_IMAGE }}
154-
packages: gcc
155-
output: gpl-sources.tar
156-
157-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
158-
with:
159-
name: comfy-angle-${{ env.COMFY_ANGLE_VERSION }}-gpl-sources
160-
path: gpl-sources.tar
161-
if-no-files-found: error
148+
packages: gcc
162149

163150
publish:
164151
name: Publish comfy-angle ${{ matrix.version }}

‎.github/workflows/build-ctranslate2.yml‎

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -146,32 +146,20 @@ jobs:
146146
pytest -v {project}/python/tests --ignore={project}/python/tests/test_fairseq.py --ignore={project}/python/tests/test_opennmt_py.py --ignore={project}/python/tests/test_opennmt_tf.py --deselect "tests/test_transformers.py::TestWav2Vec2::test_transformers_wav2vec2[facebook/wav2vec2-large-robust-ft-swbd-300h-expected_transcriptions0-cpu]" --deselect "tests/test_transformers.py::TestWhisper::test_transformers_whisper_align[test_names0-cpu]" --deselect "tests/test_transformers.py::TestWhisper::test_transformers_whisper_align[test_names1-cpu]" --deselect "tests/test_transformers.py::TestWhisper::test_transformers_whisper_align[test_names2-cpu]"
147147
148148
gpl_sources:
149+
name: Collect GPL sources for ctranslate2 ${{ matrix.version }}
149150
needs: [setup]
150151
if: needs.setup.outputs.versions != '[]'
151152
strategy:
152153
fail-fast: false
153154
matrix:
154155
version: ${{ fromJSON(needs.setup.outputs.versions) }}
155-
name: Collect GPL sources (gcc) for ctranslate2 ${{ matrix.version }}
156-
runs-on: ubuntu-24.04-riscv
157-
env:
158-
CTRANSLATE2_VERSION: ${{ matrix.version }}
159-
160-
steps:
156+
uses: $/.github/workflows/_collect-gpl-sources.yml
157+
with:
158+
package: ctranslate2
159+
version: ${{ matrix.version }}
161160
# auditwheel repair vendors the image's libgomp.so.1 into ctranslate2.libs/
162161
# because libctranslate2.so links OPENMP_RUNTIME=COMP's GNU OpenMP runtime.
163-
- name: Collect gcc source RPM from manylinux_riscv64
164-
uses: riseproject-dev/python-wheels/actions/collect-gpl-sources@main
165-
with:
166-
image: ${{ env.MANYLINUX_RISCV64_IMAGE }}
167-
packages: gcc
168-
output: gpl-sources.tar
169-
170-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
171-
with:
172-
name: ctranslate2-${{ env.CTRANSLATE2_VERSION }}-gpl-sources
173-
path: gpl-sources.tar
174-
if-no-files-found: error
162+
packages: gcc
175163

176164
publish:
177165
name: Publish ctranslate2 ${{ matrix.version }}

‎.github/workflows/build-cysystemd.yml‎

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -206,37 +206,20 @@ jobs:
206206
EOF
207207
208208
gpl_sources:
209+
name: Collect GPL sources for cysystemd ${{ matrix.version }}
209210
needs: [setup]
210211
if: needs.setup.outputs.versions != '[]'
211212
strategy:
212213
fail-fast: false
213214
matrix:
214215
version: ${{ fromJSON(needs.setup.outputs.versions) }}
215-
name: Collect GPL sources for cysystemd ${{ matrix.version }}
216-
runs-on: ubuntu-24.04-riscv
217-
218-
env:
219-
CYSYSTEMD_VERSION: ${{ matrix.version }}
220-
221-
steps:
222-
- name: Checkout python-wheels
223-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
224-
with:
225-
persist-credentials: false
226-
216+
uses: $/.github/workflows/_collect-gpl-sources.yml
217+
with:
218+
package: cysystemd
219+
version: ${{ matrix.version }}
227220
# libcap/systemd-libs are the copyleft (GPL/LGPL) libraries auditwheel
228221
# vendors out of the build image alongside libsystemd.
229-
- uses: ./actions/collect-gpl-sources
230-
with:
231-
image: ${{ env.MANYLINUX_RISCV64_IMAGE }}
232-
packages: gcc libcap systemd-libs
233-
output: gpl-sources.tar
234-
235-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
236-
with:
237-
name: cysystemd-${{ env.CYSYSTEMD_VERSION }}-gpl-sources
238-
path: gpl-sources.tar
239-
if-no-files-found: error
222+
packages: gcc libcap systemd-libs
240223

241224
publish:
242225
name: Publish cysystemd ${{ matrix.version }}

0 commit comments

Comments
 (0)