Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/_collect-gpl-sources.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# SPDX-FileCopyrightText: 2026 The RISE Project
# SPDX-License-Identifier: MIT

name: Collect GPL sources

on:
workflow_call:
inputs:
package:
description: Package name used in the uploaded artifact name.
required: true
type: string
version:
description: Package version associated with the collected sources.
required: true
type: string
packages:
description: Space-separated installed RPM package names whose source RPMs are required.
required: false
default: gcc
type: string

jobs:
collect:
name: Collect GPL sources for ${{ inputs.package }} ${{ inputs.version }}
runs-on: ubuntu-24.04-riscv
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: ./actions/collect-gpl-sources
with:
image: quay.io/pypa/manylinux_2_39_riscv64
packages: ${{ inputs.packages }}
output: gpl-sources.tar

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ${{ inputs.package }}-${{ inputs.version }}-gpl-sources
path: gpl-sources.tar
if-no-files-found: error
29 changes: 6 additions & 23 deletions .github/workflows/build-austin-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,35 +220,18 @@ jobs:
--deselect test/functional/test_asyncio.py::test_native_asyncio_disabled

gpl_sources:
name: Collect GPL sources for austin-dist ${{ matrix.version }}
needs: [setup]
if: needs.setup.outputs.versions != '[]'
strategy:
fail-fast: false
matrix:
version: ${{ fromJSON(needs.setup.outputs.versions) }}
name: Collect GPL sources for austin-dist ${{ matrix.version }}
runs-on: ubuntu-24.04-riscv

env:
AUSTIN_DIST_VERSION: ${{ matrix.version }}

steps:
- name: Checkout python-wheels
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: ./actions/collect-gpl-sources
with:
image: ${{ env.MANYLINUX_RISCV64_IMAGE }}
packages: gcc
output: gpl-sources.tar

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: austin-dist-${{ env.AUSTIN_DIST_VERSION }}-gpl-sources
path: gpl-sources.tar
if-no-files-found: error
uses: $/.github/workflows/_collect-gpl-sources.yml
with:
package: austin-dist
version: ${{ matrix.version }}
packages: gcc

publish:
name: Publish austin-dist ${{ matrix.version }}
Expand Down
24 changes: 6 additions & 18 deletions .github/workflows/build-bitsandbytes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,30 +113,18 @@ jobs:
if-no-files-found: error

gpl_sources:
name: Collect GPL sources for bitsandbytes ${{ matrix.version }}
needs: [setup]
if: needs.setup.outputs.versions != '[]'
strategy:
fail-fast: false
matrix:
version: ${{ fromJSON(needs.setup.outputs.versions) }}
name: Collect GPL sources (gcc) for bitsandbytes ${{ matrix.version }}
runs-on: ubuntu-24.04-riscv
env:
BITSANDBYTES_VERSION: ${{ matrix.version }}

steps:
- name: Collect gcc source RPM from manylinux_riscv64
uses: riseproject-dev/python-wheels/actions/collect-gpl-sources@main
with:
image: ${{ env.MANYLINUX_RISCV64_IMAGE }}
packages: gcc
output: gpl-sources.tar

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: bitsandbytes-${{ env.BITSANDBYTES_VERSION }}-gpl-sources
path: gpl-sources.tar
if-no-files-found: error
uses: $/.github/workflows/_collect-gpl-sources.yml
with:
package: bitsandbytes
version: ${{ matrix.version }}
packages: gcc

publish:
name: Publish bitsandbytes ${{ matrix.version }}
Expand Down
25 changes: 6 additions & 19 deletions .github/workflows/build-camb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,32 +70,19 @@ jobs:
cibw-test-command: "cd camb/tests && python -m unittest camb_test mathutils_test"

gpl_sources:
name: Collect GPL sources for camb ${{ matrix.version }}
needs: [setup]
if: needs.setup.outputs.versions != '[]'
strategy:
fail-fast: false
matrix:
version: ${{ fromJSON(needs.setup.outputs.versions) }}
name: Collect GPL sources (gcc) for camb ${{ matrix.version }}
runs-on: ubuntu-24.04-riscv

env:
CAMB_VERSION: ${{ matrix.version }}

steps:
uses: $/.github/workflows/_collect-gpl-sources.yml
with:
package: camb
version: ${{ matrix.version }}
# auditwheel vendors the image's libgfortran and libgomp into the wheel.
- name: Collect gcc source RPM from manylinux_riscv64
uses: riseproject-dev/python-wheels/actions/collect-gpl-sources@main
with:
image: ${{ env.MANYLINUX_RISCV64_IMAGE }}
packages: gcc
output: gpl-sources.tar

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: camb-${{ env.CAMB_VERSION }}-gpl-sources
path: gpl-sources.tar
if-no-files-found: error
packages: gcc

publish:
name: Publish camb ${{ matrix.version }}
Expand Down
29 changes: 6 additions & 23 deletions .github/workflows/build-cantera.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,36 +326,19 @@ jobs:
if-no-files-found: error

gpl_sources:
name: Collect GPL sources for cantera ${{ matrix.version }}
needs: [setup]
if: needs.setup.outputs.versions != '[]'
strategy:
fail-fast: false
matrix:
version: ${{ fromJSON(needs.setup.outputs.versions) }}
name: Collect GPL sources
runs-on: ubuntu-24.04-riscv

env:
CANTERA_VERSION: ${{ matrix.version }}

steps:
- name: Checkout python-wheels
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

uses: $/.github/workflows/_collect-gpl-sources.yml
with:
package: cantera
version: ${{ matrix.version }}
# OpenBLAS is compiled with gfortran, so auditwheel vendors the image's libgfortran.
- uses: ./actions/collect-gpl-sources
with:
image: ${{ env.MANYLINUX_RISCV64_IMAGE }}
packages: gcc
output: gpl-sources.tar

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: cantera-${{ env.CANTERA_VERSION }}-gpl-sources
path: gpl-sources.tar
if-no-files-found: error
packages: gcc

publish:
name: Publish cantera ${{ matrix.version }}
Expand Down
29 changes: 6 additions & 23 deletions .github/workflows/build-coacd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,37 +147,20 @@ jobs:
EOF

gpl_sources:
name: Collect GPL sources for coacd ${{ matrix.version }}
needs: [setup]
if: needs.setup.outputs.versions != '[]'
strategy:
fail-fast: false
matrix:
version: ${{ fromJSON(needs.setup.outputs.versions) }}
name: Collect GPL sources
runs-on: ubuntu-24.04-riscv

env:
COACD_VERSION: ${{ matrix.version }}

steps:
- name: Checkout python-wheels
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

uses: $/.github/workflows/_collect-gpl-sources.yml
with:
package: coacd
version: ${{ matrix.version }}
# setup.py passes -static-libgcc -static-libstdc++ on Linux, so
# auditwheel vendors the image's libgcc_s/libstdc++ into the wheel.
- uses: ./actions/collect-gpl-sources
with:
image: ${{ env.MANYLINUX_RISCV64_IMAGE }}
packages: gcc
output: gpl-sources.tar

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: coacd-${{ env.COACD_VERSION }}-gpl-sources
path: gpl-sources.tar
if-no-files-found: error
packages: gcc

publish:
name: Publish coacd ${{ matrix.version }}
Expand Down
25 changes: 6 additions & 19 deletions .github/workflows/build-comfy-angle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,32 +133,19 @@ jobs:
if-no-files-found: error

gpl_sources:
name: Collect GPL sources for comfy-angle ${{ matrix.version }}
needs: [setup]
if: needs.setup.outputs.versions != '[]'
strategy:
fail-fast: false
matrix:
version: ${{ fromJSON(needs.setup.outputs.versions) }}
name: Collect GPL sources (gcc) for comfy-angle ${{ matrix.version }}
runs-on: ubuntu-24.04-riscv

env:
COMFY_ANGLE_VERSION: ${{ matrix.version }}

steps:
uses: $/.github/workflows/_collect-gpl-sources.yml
with:
package: comfy-angle
version: ${{ matrix.version }}
# The libraries are compiled with the image's GCC and link its libstdc++.
- name: Collect gcc source RPM from manylinux_riscv64
uses: riseproject-dev/python-wheels/actions/collect-gpl-sources@main
with:
image: ${{ env.MANYLINUX_RISCV64_IMAGE }}
packages: gcc
output: gpl-sources.tar

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: comfy-angle-${{ env.COMFY_ANGLE_VERSION }}-gpl-sources
path: gpl-sources.tar
if-no-files-found: error
packages: gcc

publish:
name: Publish comfy-angle ${{ matrix.version }}
Expand Down
24 changes: 6 additions & 18 deletions .github/workflows/build-ctranslate2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,32 +146,20 @@ jobs:
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]"

gpl_sources:
name: Collect GPL sources for ctranslate2 ${{ matrix.version }}
needs: [setup]
if: needs.setup.outputs.versions != '[]'
strategy:
fail-fast: false
matrix:
version: ${{ fromJSON(needs.setup.outputs.versions) }}
name: Collect GPL sources (gcc) for ctranslate2 ${{ matrix.version }}
runs-on: ubuntu-24.04-riscv
env:
CTRANSLATE2_VERSION: ${{ matrix.version }}

steps:
uses: $/.github/workflows/_collect-gpl-sources.yml
with:
package: ctranslate2
version: ${{ matrix.version }}
# auditwheel repair vendors the image's libgomp.so.1 into ctranslate2.libs/
# because libctranslate2.so links OPENMP_RUNTIME=COMP's GNU OpenMP runtime.
- name: Collect gcc source RPM from manylinux_riscv64
uses: riseproject-dev/python-wheels/actions/collect-gpl-sources@main
with:
image: ${{ env.MANYLINUX_RISCV64_IMAGE }}
packages: gcc
output: gpl-sources.tar

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ctranslate2-${{ env.CTRANSLATE2_VERSION }}-gpl-sources
path: gpl-sources.tar
if-no-files-found: error
packages: gcc

publish:
name: Publish ctranslate2 ${{ matrix.version }}
Expand Down
29 changes: 6 additions & 23 deletions .github/workflows/build-cysystemd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,37 +206,20 @@ jobs:
EOF

gpl_sources:
name: Collect GPL sources for cysystemd ${{ matrix.version }}
needs: [setup]
if: needs.setup.outputs.versions != '[]'
strategy:
fail-fast: false
matrix:
version: ${{ fromJSON(needs.setup.outputs.versions) }}
name: Collect GPL sources for cysystemd ${{ matrix.version }}
runs-on: ubuntu-24.04-riscv

env:
CYSYSTEMD_VERSION: ${{ matrix.version }}

steps:
- name: Checkout python-wheels
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

uses: $/.github/workflows/_collect-gpl-sources.yml
with:
package: cysystemd
version: ${{ matrix.version }}
# libcap/systemd-libs are the copyleft (GPL/LGPL) libraries auditwheel
# vendors out of the build image alongside libsystemd.
- uses: ./actions/collect-gpl-sources
with:
image: ${{ env.MANYLINUX_RISCV64_IMAGE }}
packages: gcc libcap systemd-libs
output: gpl-sources.tar

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: cysystemd-${{ env.CYSYSTEMD_VERSION }}-gpl-sources
path: gpl-sources.tar
if-no-files-found: error
packages: gcc libcap systemd-libs

publish:
name: Publish cysystemd ${{ matrix.version }}
Expand Down
Loading