diff --git a/.github/workflows/_collect-gpl-sources.yml b/.github/workflows/_collect-gpl-sources.yml new file mode 100644 index 00000000000..e2047983e03 --- /dev/null +++ b/.github/workflows/_collect-gpl-sources.yml @@ -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 diff --git a/.github/workflows/build-austin-dist.yml b/.github/workflows/build-austin-dist.yml index 1e115c4e118..8ce64d889cf 100644 --- a/.github/workflows/build-austin-dist.yml +++ b/.github/workflows/build-austin-dist.yml @@ -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 }} diff --git a/.github/workflows/build-bitsandbytes.yml b/.github/workflows/build-bitsandbytes.yml index 5701c698467..b071ee4a2c8 100644 --- a/.github/workflows/build-bitsandbytes.yml +++ b/.github/workflows/build-bitsandbytes.yml @@ -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 }} diff --git a/.github/workflows/build-camb.yml b/.github/workflows/build-camb.yml index abcf533fe23..fb272c6c9d4 100644 --- a/.github/workflows/build-camb.yml +++ b/.github/workflows/build-camb.yml @@ -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 }} diff --git a/.github/workflows/build-cantera.yml b/.github/workflows/build-cantera.yml index a29a2d918d0..13c77a88fc3 100644 --- a/.github/workflows/build-cantera.yml +++ b/.github/workflows/build-cantera.yml @@ -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 }} diff --git a/.github/workflows/build-coacd.yml b/.github/workflows/build-coacd.yml index 5c675b7a30a..344a074c9e1 100644 --- a/.github/workflows/build-coacd.yml +++ b/.github/workflows/build-coacd.yml @@ -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 }} diff --git a/.github/workflows/build-comfy-angle.yml b/.github/workflows/build-comfy-angle.yml index 71e106a50c4..18662558e3e 100644 --- a/.github/workflows/build-comfy-angle.yml +++ b/.github/workflows/build-comfy-angle.yml @@ -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 }} diff --git a/.github/workflows/build-ctranslate2.yml b/.github/workflows/build-ctranslate2.yml index 8c6f3506a30..d7e38db6652 100644 --- a/.github/workflows/build-ctranslate2.yml +++ b/.github/workflows/build-ctranslate2.yml @@ -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 }} diff --git a/.github/workflows/build-cysystemd.yml b/.github/workflows/build-cysystemd.yml index 6805a591a02..d5d3c35cba9 100644 --- a/.github/workflows/build-cysystemd.yml +++ b/.github/workflows/build-cysystemd.yml @@ -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 }} diff --git a/.github/workflows/build-depthai.yml b/.github/workflows/build-depthai.yml index d35b3fc2148..4f4250dd1bf 100644 --- a/.github/workflows/build-depthai.yml +++ b/.github/workflows/build-depthai.yml @@ -230,35 +230,18 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for depthai ${{ 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 depthai ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - DEPTHAI_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: depthai-${{ env.DEPTHAI_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: depthai + version: ${{ matrix.version }} + packages: gcc publish: name: Publish depthai ${{ matrix.version }} diff --git a/.github/workflows/build-diptest.yml b/.github/workflows/build-diptest.yml index 87e482d445d..942ba7e84ed 100644 --- a/.github/workflows/build-diptest.yml +++ b/.github/workflows/build-diptest.yml @@ -74,37 +74,20 @@ jobs: cibw-test-command: "pytest {project}/tests && python -c \"from diptest import _has_openmp_support; assert _has_openmp_support\"" gpl_sources: + name: Collect GPL sources for diptest ${{ 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: - DIPTEST_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: diptest + version: ${{ matrix.version }} # DIPTEST_ENABLE_OPENMP=ON above links -fopenmp, so auditwheel vendors # the image's libgomp into diptest.libs/. - - 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: diptest-${{ env.DIPTEST_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish diptest ${{ matrix.version }} diff --git a/.github/workflows/build-dtaidistance.yml b/.github/workflows/build-dtaidistance.yml index f1c7734c4fd..9df07dd1b9e 100644 --- a/.github/workflows/build-dtaidistance.yml +++ b/.github/workflows/build-dtaidistance.yml @@ -82,37 +82,20 @@ jobs: cibw-test-command: "pytest --ignore=venv --benchmark-skip -k \"not test_lc_pat3\" {project}/tests" gpl_sources: + name: Collect GPL sources for dtaidistance ${{ 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: - DTAIDISTANCE_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: dtaidistance + version: ${{ matrix.version }} # dtw_cc_omp links -fopenmp, so auditwheel vendors the image's libgomp # into dtaidistance.libs/. - - 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: dtaidistance-${{ env.DTAIDISTANCE_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish dtaidistance ${{ matrix.version }} diff --git a/.github/workflows/build-eckitlib.yml b/.github/workflows/build-eckitlib.yml index e6b37a2b87b..37adaf202b8 100644 --- a/.github/workflows/build-eckitlib.yml +++ b/.github/workflows/build-eckitlib.yml @@ -288,37 +288,20 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for eckitlib ${{ 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 eckitlib ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - PACKAGE_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: eckitlib + version: ${{ matrix.version }} # The copyleft (GPL/LGPL) libraries auditwheel vendors out of the build image # along libcurl's dependency closure. - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: gcc keyutils-libs libssh libidn2 libunistring libxcrypt systemd-libs libcap pcre2 - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: eckitlib-${{ env.PACKAGE_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc keyutils-libs libssh libidn2 libunistring libxcrypt systemd-libs libcap pcre2 publish: name: Publish eckitlib ${{ matrix.version }} diff --git a/.github/workflows/build-evtx.yml b/.github/workflows/build-evtx.yml index 6a7296b5aa5..7482c869aa9 100644 --- a/.github/workflows/build-evtx.yml +++ b/.github/workflows/build-evtx.yml @@ -121,36 +121,19 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for evtx ${{ 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: - EVTX_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: evtx + version: ${{ matrix.version }} # auditwheel's musllinux policy does not allowlist libgcc_s, so the musl wheels vendor it. - - 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: evtx-${{ env.EVTX_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish evtx ${{ matrix.version }} diff --git a/.github/workflows/build-faiss-cpu.yml b/.github/workflows/build-faiss-cpu.yml index 97328d0fdde..1b1a0765efa 100644 --- a/.github/workflows/build-faiss-cpu.yml +++ b/.github/workflows/build-faiss-cpu.yml @@ -108,37 +108,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for faiss-cpu ${{ 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: - FAISS_CPU_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: faiss-cpu + version: ${{ matrix.version }} # faiss links OpenMP and OpenBLAS, so auditwheel vendors the image's # libgomp and libgfortran into faiss_cpu.libs/. - - 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: faiss-cpu-${{ env.FAISS_CPU_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish faiss-cpu ${{ matrix.version }} diff --git a/.github/workflows/build-fckitlib.yml b/.github/workflows/build-fckitlib.yml index 269056e0058..e41a3e914db 100644 --- a/.github/workflows/build-fckitlib.yml +++ b/.github/workflows/build-fckitlib.yml @@ -265,37 +265,20 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for fckitlib ${{ 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 fckitlib ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - PACKAGE_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: fckitlib + version: ${{ matrix.version }} # fckit compiles real Fortran, so the wheel bundles the image's # libgfortran/libquadmath runtime (not on the manylinux baseline list). - - 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: fckitlib-${{ env.PACKAGE_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish fckitlib ${{ matrix.version }} diff --git a/.github/workflows/build-fpylll.yml b/.github/workflows/build-fpylll.yml index 421bac913c6..b9c0ca94fc7 100644 --- a/.github/workflows/build-fpylll.yml +++ b/.github/workflows/build-fpylll.yml @@ -119,35 +119,18 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for fpylll ${{ 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: - FPYLLL_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 gmp mpfr - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: fpylll-${{ env.FPYLLL_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: fpylll + version: ${{ matrix.version }} + packages: gcc gmp mpfr publish: name: Publish fpylll ${{ matrix.version }} diff --git a/.github/workflows/build-glum.yml b/.github/workflows/build-glum.yml index 8a3d9e05c1a..54a1f101aec 100644 --- a/.github/workflows/build-glum.yml +++ b/.github/workflows/build-glum.yml @@ -101,36 +101,19 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for glum ${{ 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: - GLUM_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: glum + version: ${{ matrix.version }} # -fopenmp above links libgomp, which auditwheel vendors into glum.libs/. - - 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: glum-${{ env.GLUM_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish glum ${{ matrix.version }} diff --git a/.github/workflows/build-healpy.yml b/.github/workflows/build-healpy.yml index ba27dc8f526..2ce3f11f17f 100644 --- a/.github/workflows/build-healpy.yml +++ b/.github/workflows/build-healpy.yml @@ -127,37 +127,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for healpy ${{ 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: - HEALPY_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: healpy + version: ${{ matrix.version }} # libsharp and HEALPix C++ (both cextern/ submodules) link OpenMP when # available, so auditwheel vendors the image's libgomp into healpy.libs/. - - 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: healpy-${{ env.HEALPY_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish healpy ${{ matrix.version }} diff --git a/.github/workflows/build-hidapi.yml b/.github/workflows/build-hidapi.yml index d786264dfcd..0154803d3d9 100644 --- a/.github/workflows/build-hidapi.yml +++ b/.github/workflows/build-hidapi.yml @@ -171,37 +171,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for hidapi ${{ 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 hidapi ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - HIDAPI_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: hidapi + version: ${{ matrix.version }} # libcap/libusb1/systemd-libs are the copyleft (GPL/LGPL) libraries auditwheel vendors # out of the build image alongside libusb/libudev. - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: gcc libcap libusb1 systemd-libs - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: hidapi-${{ env.HIDAPI_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc libcap libusb1 systemd-libs publish: name: Publish hidapi ${{ matrix.version }} diff --git a/.github/workflows/build-hierarchicalforecast.yml b/.github/workflows/build-hierarchicalforecast.yml index ca383e1dce3..f8e92101e55 100644 --- a/.github/workflows/build-hierarchicalforecast.yml +++ b/.github/workflows/build-hierarchicalforecast.yml @@ -123,37 +123,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for hierarchicalforecast ${{ 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: - HIERARCHICALFORECAST_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: hierarchicalforecast + version: ${{ matrix.version }} # setup.py links -fopenmp on Linux, so auditwheel vendors the image's # libgomp into hierarchicalforecast.libs/. - - 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: hierarchicalforecast-${{ env.HIERARCHICALFORECAST_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish hierarchicalforecast ${{ matrix.version }} diff --git a/.github/workflows/build-home-assistant-chip-core.yml b/.github/workflows/build-home-assistant-chip-core.yml index 09c7c8d7ff4..3c60496aa10 100644 --- a/.github/workflows/build-home-assistant-chip-core.yml +++ b/.github/workflows/build-home-assistant-chip-core.yml @@ -296,32 +296,20 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for home-assistant-chip-core ${{ matrix.version }} needs: [setup] if: needs.setup.outputs.versions != '[]' strategy: fail-fast: false matrix: version: ${{ fromJSON(needs.setup.outputs.versions) }} - name: Collect GPL sources (glib2, libnl3) for home-assistant-chip-core ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - env: - CHIP_VERSION: ${{ matrix.version }} - - steps: + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: home-assistant-chip-core + version: ${{ matrix.version }} # auditwheel vendors the image's libglib-2.0/libgobject-2.0/libgio-2.0 # (glib2, LGPL) and libnl-3/libnl-route-3 (libnl3, LGPL) into the wheel. - - name: Collect glib2/libnl3 source RPMs from manylinux_riscv64 - uses: riseproject-dev/python-wheels/actions/collect-gpl-sources@main - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: glib2 libnl3 - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: home-assistant-chip-core-${{ env.CHIP_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: glib2 libnl3 publish: name: Publish home-assistant-chip-core ${{ matrix.version }} diff --git a/.github/workflows/build-igraph.yml b/.github/workflows/build-igraph.yml index fe8d881b9b8..5e39cc6cf59 100644 --- a/.github/workflows/build-igraph.yml +++ b/.github/workflows/build-igraph.yml @@ -143,37 +143,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for igraph ${{ 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: - IGRAPH_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: igraph + version: ${{ matrix.version }} # plfit (vendored inside the igraph C core) links OpenMP when available, so # auditwheel vendors the image's libgomp into igraph.libs/. - - 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: igraph-${{ env.IGRAPH_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish igraph ${{ matrix.version }} diff --git a/.github/workflows/build-implicit.yml b/.github/workflows/build-implicit.yml index 7c46ffc93ff..a8c4bfb9d28 100644 --- a/.github/workflows/build-implicit.yml +++ b/.github/workflows/build-implicit.yml @@ -119,38 +119,21 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for implicit ${{ 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: - IMPLICIT_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: implicit + version: ${{ matrix.version }} # CMake links OpenMP whenever find_package(OpenMP) succeeds (implicit's own # CMakeLists.txt has no way to disable it), so auditwheel repair above # vendors the image's libgomp into implicit.libs/. - - 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: implicit-${{ env.IMPLICIT_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish implicit ${{ matrix.version }} diff --git a/.github/workflows/build-infomap.yml b/.github/workflows/build-infomap.yml index 199a06c5dbf..b16dfddc38c 100644 --- a/.github/workflows/build-infomap.yml +++ b/.github/workflows/build-infomap.yml @@ -110,37 +110,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for infomap ${{ 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: - INFOMAP_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: infomap + version: ${{ matrix.version }} # infomap enables -fopenmp by default, so auditwheel vendors the image's # libgomp into infomap.libs/. - - 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: infomap-${{ env.INFOMAP_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish infomap ${{ matrix.version }} diff --git a/.github/workflows/build-kyrax.yml b/.github/workflows/build-kyrax.yml index e848d9fec87..24e9987017f 100644 --- a/.github/workflows/build-kyrax.yml +++ b/.github/workflows/build-kyrax.yml @@ -158,37 +158,20 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for kyrax ${{ 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: - KYRAX_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: kyrax + version: ${{ matrix.version }} # The musllinux wheels vendor libgcc_s, which rustc links for unwinding # and auditwheel's musllinux policy does not allowlist (gotcha 409). - - uses: ./actions/collect-gpl-sources - with: - image: quay.io/pypa/manylinux_2_39_riscv64 - packages: gcc - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: kyrax-${{ env.KYRAX_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish kyrax ${{ matrix.version }} diff --git a/.github/workflows/build-leidenalg.yml b/.github/workflows/build-leidenalg.yml index 2fa6a10fa73..78bf56f54a9 100644 --- a/.github/workflows/build-leidenalg.yml +++ b/.github/workflows/build-leidenalg.yml @@ -125,37 +125,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for leidenalg ${{ 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: - LEIDENALG_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: leidenalg + version: ${{ matrix.version }} # auditwheel's musllinux policy does not allowlist the GCC runtime, so the # musllinux wheel vendors the image's libstdc++ and libgcc_s (gotcha 66). - - 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: leidenalg-${{ env.LEIDENALG_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish leidenalg ${{ matrix.version }} diff --git a/.github/workflows/build-libclang.yml b/.github/workflows/build-libclang.yml index ce9c107e16d..5ca39c390c6 100644 --- a/.github/workflows/build-libclang.yml +++ b/.github/workflows/build-libclang.yml @@ -125,31 +125,19 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for libclang ${{ 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 libclang ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - env: - LIBCLANG_VERSION: ${{ matrix.version }} - - steps: + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: libclang + version: ${{ matrix.version }} # -static-libgcc/-static-libstdc++ embeds the image's gcc runtime into libclang.so. - - 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: libclang-${{ env.LIBCLANG_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish libclang ${{ matrix.version }} diff --git a/.github/workflows/build-libtorrent.yml b/.github/workflows/build-libtorrent.yml index 564bf9ece88..7ee3ec6edeb 100644 --- a/.github/workflows/build-libtorrent.yml +++ b/.github/workflows/build-libtorrent.yml @@ -123,36 +123,19 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for libtorrent ${{ 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: - LIBTORRENT_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: libtorrent + version: ${{ matrix.version }} # auditwheel's musllinux policy vendors libstdc++/libgcc_s into the musllinux wheels. - - 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: libtorrent-${{ env.LIBTORRENT_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish libtorrent ${{ matrix.version }} diff --git a/.github/workflows/build-libucx-cu12.yml b/.github/workflows/build-libucx-cu12.yml index 1b94d00ac55..b7dee96fee6 100644 --- a/.github/workflows/build-libucx-cu12.yml +++ b/.github/workflows/build-libucx-cu12.yml @@ -130,34 +130,18 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for libucx-cu12 ${{ matrix.version }} needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Collect GPL sources for libucx-cu12 ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv strategy: fail-fast: false matrix: version: ${{ fromJSON(needs.setup.outputs.versions) }} - - env: - LIBUCX_CU12_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 }} - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: libucx-cu12-${{ env.LIBUCX_CU12_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: libucx-cu12 + version: ${{ matrix.version }} + packages: gcc publish: name: Publish libucx-cu12 ${{ matrix.version }} diff --git a/.github/workflows/build-libuuu.yml b/.github/workflows/build-libuuu.yml index 6c36db1e9fb..3dacddb2d5e 100644 --- a/.github/workflows/build-libuuu.yml +++ b/.github/workflows/build-libuuu.yml @@ -206,37 +206,20 @@ jobs: SCRIPT gpl_sources: + name: Collect GPL sources for libuuu ${{ 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 libuuu ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - LIBUUU_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: libuuu + version: ${{ matrix.version }} # libcap/libusb1/systemd-libs are the copyleft (GPL/LGPL) libraries auditwheel vendors # out of the build image alongside libuuu.so. - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: gcc libcap libusb1 systemd-libs - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: libuuu-${{ env.LIBUUU_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc libcap libusb1 systemd-libs publish: name: Publish libuuu ${{ matrix.version }} diff --git a/.github/workflows/build-mdanalysis.yml b/.github/workflows/build-mdanalysis.yml index a70609c7493..173cbc98c6c 100644 --- a/.github/workflows/build-mdanalysis.yml +++ b/.github/workflows/build-mdanalysis.yml @@ -130,35 +130,18 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for mdanalysis ${{ 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: - MDANALYSIS_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: mdanalysis-${{ env.MDANALYSIS_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: mdanalysis + version: ${{ matrix.version }} + packages: gcc publish: name: Publish mdanalysis ${{ matrix.version }} diff --git a/.github/workflows/build-mdtraj.yml b/.github/workflows/build-mdtraj.yml index a23fa32048b..8cad7e9f968 100644 --- a/.github/workflows/build-mdtraj.yml +++ b/.github/workflows/build-mdtraj.yml @@ -136,35 +136,18 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for mdtraj ${{ 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: - MDTRAJ_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: mdtraj-${{ env.MDTRAJ_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: mdtraj + version: ${{ matrix.version }} + packages: gcc publish: name: Publish mdtraj ${{ matrix.version }} diff --git a/.github/workflows/build-memray.yml b/.github/workflows/build-memray.yml index ccb81620bdc..0d8d819069e 100644 --- a/.github/workflows/build-memray.yml +++ b/.github/workflows/build-memray.yml @@ -191,39 +191,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for memray ${{ 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 memray ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - MEMRAY_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: memray + version: ${{ matrix.version }} # Every copyleft library auditwheel vendors out of the build image, # alongside the gcc runtime. - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: >- - gcc elfutils keyutils-libs libcap libidn2 libssh libunistring - libxcrypt libzstd lz4-libs pcre2 systemd-libs - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: memray-${{ env.MEMRAY_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc elfutils keyutils-libs libcap libidn2 libssh libunistring libxcrypt libzstd lz4-libs pcre2 systemd-libs publish: name: Publish memray ${{ matrix.version }} diff --git a/.github/workflows/build-mlx.yml b/.github/workflows/build-mlx.yml index cecd3742bd9..8b47719bbed 100644 --- a/.github/workflows/build-mlx.yml +++ b/.github/workflows/build-mlx.yml @@ -290,37 +290,20 @@ jobs: MLX_TEST_EOF gpl_sources: + name: Collect GPL sources for mlx ${{ 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: - MLX_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: mlx + version: ${{ matrix.version }} # OpenBLAS is compiled with gfortran, so auditwheel vendors the image's # libgfortran into mlx_cpu.libs/. - - 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: mlx-${{ env.MLX_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish_frontend: name: Publish mlx ${{ matrix.version }} diff --git a/.github/workflows/build-mnn.yml b/.github/workflows/build-mnn.yml index 46cb52f9af2..8c59ffb5ac6 100644 --- a/.github/workflows/build-mnn.yml +++ b/.github/workflows/build-mnn.yml @@ -174,32 +174,20 @@ jobs: bash /mnn/riscv64-build-and-test.sh test gpl_sources: + name: Collect GPL sources for mnn ${{ 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 mnn ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - env: - MNN_VERSION: ${{ matrix.version }} - - steps: + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: mnn + version: ${{ matrix.version }} # pymnn/pip_package/setup.py links _mnncengine/_tools with -fopenmp on Linux # unconditionally, and auditwheel vendors the image's libgomp.so.1 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: mnn-${{ env.MNN_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish mnn ${{ matrix.version }} diff --git a/.github/workflows/build-mooncake-transfer-engine-non-cuda.yml b/.github/workflows/build-mooncake-transfer-engine-non-cuda.yml index 87eb101724d..00db9e467f4 100644 --- a/.github/workflows/build-mooncake-transfer-engine-non-cuda.yml +++ b/.github/workflows/build-mooncake-transfer-engine-non-cuda.yml @@ -209,35 +209,18 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for mooncake-transfer-engine-non-cuda ${{ matrix.version }} needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Collect GPL sources for mooncake-transfer-engine-non-cuda ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv strategy: fail-fast: false matrix: version: ${{ fromJSON(needs.setup.outputs.versions) }} - - env: - MOONCAKE_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: libzstd - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: mooncake-transfer-engine-non-cuda-${{ env.MOONCAKE_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: mooncake-transfer-engine-non-cuda + version: ${{ matrix.version }} + packages: libzstd publish: name: Publish mooncake-transfer-engine-non-cuda ${{ matrix.version }} diff --git a/.github/workflows/build-moviepilot-rust.yml b/.github/workflows/build-moviepilot-rust.yml index fa1583c99c3..58fc5e2596c 100644 --- a/.github/workflows/build-moviepilot-rust.yml +++ b/.github/workflows/build-moviepilot-rust.yml @@ -74,36 +74,19 @@ jobs: cibw-test-command: "python -m pytest -q" gpl_sources: + name: Collect GPL sources for moviepilot-rust ${{ 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: - MOVIEPILOT_RUST_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: moviepilot-rust + version: ${{ matrix.version }} # Rust cdylibs on musl link libgcc_s dynamically, so auditwheel vendors it into the musllinux wheels. - - 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: moviepilot-rust-${{ env.MOVIEPILOT_RUST_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish moviepilot-rust ${{ matrix.version }} diff --git a/.github/workflows/build-mysql-connector-python.yml b/.github/workflows/build-mysql-connector-python.yml index 7a0a9d240bc..fe97032a216 100644 --- a/.github/workflows/build-mysql-connector-python.yml +++ b/.github/workflows/build-mysql-connector-python.yml @@ -126,37 +126,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for mysql-connector-python ${{ 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: - MYSQL_CONNECTOR_PYTHON_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: mysql-connector-python + version: ${{ matrix.version }} # The wheels vendor libmysqlclient (GPLv2) out of the build container # alongside the gcc runtime, so both need their sources published. - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: gcc mysql8.4-libs - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: mysql-connector-python-${{ env.MYSQL_CONNECTOR_PYTHON_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc mysql8.4-libs publish: name: Publish mysql-connector-python ${{ matrix.version }} diff --git a/.github/workflows/build-networkit.yml b/.github/workflows/build-networkit.yml index bc0c072192c..85e648727e0 100644 --- a/.github/workflows/build-networkit.yml +++ b/.github/workflows/build-networkit.yml @@ -103,36 +103,19 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for networkit ${{ 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 networkit ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - NETWORKIT_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: networkit + version: ${{ matrix.version }} # networkit links OpenMP, so auditwheel vendors the image's libgomp. - - 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: networkit-${{ env.NETWORKIT_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish networkit ${{ matrix.version }} diff --git a/.github/workflows/build-ngt.yml b/.github/workflows/build-ngt.yml index ccefdde7d57..0e6906fa22f 100644 --- a/.github/workflows/build-ngt.yml +++ b/.github/workflows/build-ngt.yml @@ -128,37 +128,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for ngt ${{ 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: - NGT_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: ngt + version: ${{ matrix.version }} # OpenMP (find_package(OpenMP REQUIRED)) links libgomp, which # auditwheel vendors into ngt.libs/. - - 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: ngt-${{ env.NGT_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish ngt ${{ matrix.version }} diff --git a/.github/workflows/build-nixl-cu12.yml b/.github/workflows/build-nixl-cu12.yml index 4b08aa205ee..ca90fe1a5a3 100644 --- a/.github/workflows/build-nixl-cu12.yml +++ b/.github/workflows/build-nixl-cu12.yml @@ -81,35 +81,18 @@ jobs: cibw-test-command: "pytest -s test/python" gpl_sources: + name: Collect GPL sources for nixl-cu12 ${{ matrix.version }} needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Collect GPL sources for nixl-cu12 ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv strategy: fail-fast: false matrix: version: ${{ fromJSON(needs.setup.outputs.versions) }} - - env: - NIXL_CU12_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: libaio - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: nixl-cu12-${{ env.NIXL_CU12_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: nixl-cu12 + version: ${{ matrix.version }} + packages: libaio publish: name: Publish nixl-cu12 ${{ matrix.version }} diff --git a/.github/workflows/build-nmslib.yml b/.github/workflows/build-nmslib.yml index 9cb8e8ce044..45f956b7ef5 100644 --- a/.github/workflows/build-nmslib.yml +++ b/.github/workflows/build-nmslib.yml @@ -110,37 +110,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for nmslib ${{ 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 nmslib ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - NMSLIB_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: nmslib + version: ${{ matrix.version }} # setup.py's BuildExt always adds -fopenmp/-pthread on non-darwin unix, # so auditwheel vendors the image's libgomp 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: nmslib-${{ env.NMSLIB_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish nmslib ${{ matrix.version }} diff --git a/.github/workflows/build-opentsne.yml b/.github/workflows/build-opentsne.yml index ba8d3e81be2..c6b9d68b279 100644 --- a/.github/workflows/build-opentsne.yml +++ b/.github/workflows/build-opentsne.yml @@ -85,37 +85,20 @@ jobs: cibw-test-command: "pytest -v tests" gpl_sources: + name: Collect GPL sources for opentsne ${{ 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: - OPENTSNE_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: opentsne + version: ${{ matrix.version }} # setup.py adds -fopenmp to every extension when has_c_library("omp"), so # auditwheel vendors the image's libgomp into opentsne.libs/. - - 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: opentsne-${{ env.OPENTSNE_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish opentsne ${{ matrix.version }} diff --git a/.github/workflows/build-openturns.yml b/.github/workflows/build-openturns.yml index eb094e3bf86..c7d60eca47f 100644 --- a/.github/workflows/build-openturns.yml +++ b/.github/workflows/build-openturns.yml @@ -240,33 +240,19 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for openturns ${{ 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 - - 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: openturns + version: ${{ matrix.version }} # OpenTURNS builds with -fopenmp, so auditwheel vendors the image's libgomp. - - 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: openturns-${{ matrix.version }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish openturns ${{ matrix.version }} diff --git a/.github/workflows/build-ouster-sdk.yml b/.github/workflows/build-ouster-sdk.yml index fcae32ba6d9..dd942eb7d38 100644 --- a/.github/workflows/build-ouster-sdk.yml +++ b/.github/workflows/build-ouster-sdk.yml @@ -321,37 +321,20 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for ouster-sdk ${{ 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 ouster-sdk ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - OUSTER_SDK_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: ouster-sdk + version: ${{ matrix.version }} # gcc (ouster_mapping's OpenMP needs libgomp) and libcurl's copyleft closure, both # vendored out of the build image. - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: gcc keyutils-libs libssh libidn2 libunistring libxcrypt systemd-libs libcap pcre2 - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: ouster-sdk-${{ env.OUSTER_SDK_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc keyutils-libs libssh libidn2 libunistring libxcrypt systemd-libs libcap pcre2 publish: name: Publish ouster-sdk ${{ matrix.version }} diff --git a/.github/workflows/build-packmol.yml b/.github/workflows/build-packmol.yml index 9c5e0d01e57..685d68997ed 100644 --- a/.github/workflows/build-packmol.yml +++ b/.github/workflows/build-packmol.yml @@ -69,29 +69,19 @@ jobs: cibw-environment-linux: "MAKEFLAGS='FLAGS=-O3\\ -funroll-loops\\ -fPIE\\ -pie'" gpl_sources: + name: Collect GPL sources for packmol ${{ matrix.version }} needs: [setup] if: needs.setup.outputs.versions != '[]' strategy: fail-fast: false matrix: version: ${{ fromJSON(needs.setup.outputs.versions) }} - # packmol is a gfortran-built executable, so auditwheel vendors its libgfortran runtime. - name: Collect GPL sources (gcc) for packmol ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - 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: packmol-${{ matrix.version }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: packmol + version: ${{ matrix.version }} + # packmol is a gfortran-built executable, so auditwheel vendors its libgfortran runtime. + packages: gcc publish: name: Publish packmol ${{ matrix.version }} diff --git a/.github/workflows/build-paddlepaddle.yml b/.github/workflows/build-paddlepaddle.yml index 4394825a4c1..f4a3a8cf100 100644 --- a/.github/workflows/build-paddlepaddle.yml +++ b/.github/workflows/build-paddlepaddle.yml @@ -236,33 +236,21 @@ jobs: bash /paddle/riscv64-build-and-test.sh test gpl_sources: + name: Collect GPL sources for paddlepaddle ${{ 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 paddlepaddle ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - env: - PADDLE_VERSION: ${{ matrix.version }} - - steps: + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: paddlepaddle + version: ${{ matrix.version }} # setup.py copies GFORTRAN_LIB and GNU_RT_LIB_1 into paddle/libs/, which # patch 3/5 resolves to the image's own libgfortran.so.5 and # libquadmath.so.0. - - 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: paddlepaddle-${{ env.PADDLE_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish paddlepaddle ${{ matrix.version }} diff --git a/.github/workflows/build-panda3d.yml b/.github/workflows/build-panda3d.yml index bdfcd447839..975f4744bed 100644 --- a/.github/workflows/build-panda3d.yml +++ b/.github/workflows/build-panda3d.yml @@ -160,38 +160,21 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for panda3d ${{ 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 panda3d ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - PANDA3D_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: panda3d + version: ${{ matrix.version }} # The engine is compiled with the image's GCC and links its libstdc++; # freetype's Rocky 10 build resolves to its GPLv2 option (same as # build-pygame.yml's freetype entry, from the same image). - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: gcc freetype - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: panda3d-${{ env.PANDA3D_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc freetype publish: name: Publish panda3d ${{ matrix.version }} diff --git a/.github/workflows/build-pcapy-ng.yml b/.github/workflows/build-pcapy-ng.yml index 9e0f403bdc7..30d6e3e786e 100644 --- a/.github/workflows/build-pcapy-ng.yml +++ b/.github/workflows/build-pcapy-ng.yml @@ -198,37 +198,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pcapy-ng ${{ 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 pcapy-ng ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - PCAPY_NG_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: pcapy-ng + version: ${{ matrix.version }} # The musllinux wheel vendors the GCC runtime (gotcha 409); libibverbs/libnl3 are the # copyleft libraries auditwheel vendors into the manylinux wheel alongside libpcap. - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: gcc libibverbs libnl3 - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: pcapy-ng-${{ env.PCAPY_NG_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc libibverbs libnl3 publish: name: Publish pcapy-ng ${{ matrix.version }} diff --git a/.github/workflows/build-pedalboard.yml b/.github/workflows/build-pedalboard.yml index 30616360cbe..2e04dc125c5 100644 --- a/.github/workflows/build-pedalboard.yml +++ b/.github/workflows/build-pedalboard.yml @@ -207,37 +207,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pedalboard ${{ matrix.version }} needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Collect GPL sources for pedalboard ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv strategy: fail-fast: false matrix: version: ${{ fromJSON(needs.setup.outputs.versions) }} - - env: - PEDALBOARD_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: pedalboard + version: ${{ matrix.version }} # Every copyleft library auditwheel vendors out of the build image, # alongside the gcc runtime. - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: gcc alsa-lib freetype glib2 graphite2 pcre2 - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: pedalboard-${{ env.PEDALBOARD_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc alsa-lib freetype glib2 graphite2 pcre2 publish: name: Publish pedalboard ${{ matrix.version }} diff --git a/.github/workflows/build-pixeltable-pgserver.yml b/.github/workflows/build-pixeltable-pgserver.yml index f1acb52c792..fa827ef739f 100644 --- a/.github/workflows/build-pixeltable-pgserver.yml +++ b/.github/workflows/build-pixeltable-pgserver.yml @@ -145,35 +145,18 @@ jobs: done gpl_sources: + name: Collect GPL sources for pixeltable-pgserver ${{ matrix.version }} needs: [setup] if: needs.setup.outputs.versions != '[]' strategy: fail-fast: false matrix: version: ${{ fromJSON(needs.setup.outputs.versions) }} - name: Collect GPL sources (readline) for pixeltable-pgserver ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - PIXELTABLE_PGSERVER_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: readline - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: pixeltable-pgserver-${{ env.PIXELTABLE_PGSERVER_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: pixeltable-pgserver + version: ${{ matrix.version }} + packages: readline publish: name: Publish pixeltable-pgserver ${{ matrix.version }} diff --git a/.github/workflows/build-point-cloud-utils.yml b/.github/workflows/build-point-cloud-utils.yml index ee9c0f45186..e38d5906191 100644 --- a/.github/workflows/build-point-cloud-utils.yml +++ b/.github/workflows/build-point-cloud-utils.yml @@ -160,34 +160,18 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for point-cloud-utils ${{ 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 point-cloud-utils ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - env: - POINT_CLOUD_UTILS_VERSION: ${{ matrix.version }} - - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - - name: Collect gcc source RPM from manylinux_riscv64 - 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: point-cloud-utils-${{ env.POINT_CLOUD_UTILS_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: point-cloud-utils + version: ${{ matrix.version }} + packages: gcc publish: name: Publish point-cloud-utils 0.34.0 diff --git a/.github/workflows/build-pot.yml b/.github/workflows/build-pot.yml index a31e0effed3..06eab12f834 100644 --- a/.github/workflows/build-pot.yml +++ b/.github/workflows/build-pot.yml @@ -142,37 +142,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pot ${{ 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: - POT_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: pot + version: ${{ matrix.version }} # POT's emd_wrap/bsp_wrap extensions link -fopenmp on Linux (setup.py's # OMP probe), so auditwheel vendors the image's libgomp into pot.libs/. - - 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: pot-${{ env.POT_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish pot ${{ matrix.version }} diff --git a/.github/workflows/build-private-attribute-cpp.yml b/.github/workflows/build-private-attribute-cpp.yml index f65b2bdcb55..62fed7a9ccf 100644 --- a/.github/workflows/build-private-attribute-cpp.yml +++ b/.github/workflows/build-private-attribute-cpp.yml @@ -71,36 +71,20 @@ jobs: cibw-test-command: "python -X faulthandler -m pytest tests -vvs -W error" gpl_sources: + name: Collect GPL sources for private-attribute-cpp ${{ 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: - PRIVATE_ATTRIBUTE_CPP_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: private-attribute-cpp + version: ${{ matrix.version }} # auditwheel vendors the GCC C++ runtime (libstdc++/libgcc_s) into the # musllinux wheels. - - 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: private-attribute-cpp-${{ env.PRIVATE_ATTRIBUTE_CPP_VERSION }}-gpl-sources - path: gpl-sources.tar + packages: gcc publish: name: Publish private-attribute-cpp ${{ matrix.version }} diff --git a/.github/workflows/build-pulsar-client.yml b/.github/workflows/build-pulsar-client.yml index 0bcc010043a..75921d630d7 100644 --- a/.github/workflows/build-pulsar-client.yml +++ b/.github/workflows/build-pulsar-client.yml @@ -201,37 +201,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pulsar-client ${{ matrix.version }} needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Collect GPL sources for pulsar-client ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv strategy: fail-fast: false matrix: version: ${{ fromJSON(needs.setup.outputs.versions) }} - - env: - PULSAR_CLIENT_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: pulsar-client + version: ${{ matrix.version }} # Every copyleft library auditwheel vendors out of the build image, alongside # the gcc runtime. - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: gcc keyutils-libs libcap libidn2 libssh libunistring libxcrypt libzstd pcre2 systemd-libs - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: pulsar-client-${{ env.PULSAR_CLIENT_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc keyutils-libs libcap libidn2 libssh libunistring libxcrypt libzstd pcre2 systemd-libs publish: name: Publish pulsar-client ${{ matrix.version }} diff --git a/.github/workflows/build-py-ballisticcalc-exts.yml b/.github/workflows/build-py-ballisticcalc-exts.yml index 33ff9cb1ab5..d7917d38081 100644 --- a/.github/workflows/build-py-ballisticcalc-exts.yml +++ b/.github/workflows/build-py-ballisticcalc-exts.yml @@ -89,37 +89,20 @@ jobs: python -m pytest tests -v --engine=$engine || exit 1; done gpl_sources: + name: Collect GPL sources for py-ballisticcalc-exts ${{ 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: - PY_BALLISTICCALC_EXTS_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: py-ballisticcalc-exts + version: ${{ matrix.version }} # auditwheel's musllinux policy does not allowlist the GCC runtime, so the # musllinux wheels vendor libstdc++ and libgcc_s (gotcha 409). - - 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: py-ballisticcalc-exts-${{ env.PY_BALLISTICCALC_EXTS_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish py-ballisticcalc-exts ${{ matrix.version }} diff --git a/.github/workflows/build-pyagrum.yml b/.github/workflows/build-pyagrum.yml index 8935b74d023..00669603aa3 100644 --- a/.github/workflows/build-pyagrum.yml +++ b/.github/workflows/build-pyagrum.yml @@ -149,33 +149,19 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pyagrum ${{ 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 - - 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: pyagrum + version: ${{ matrix.version }} # aGrUM builds with -fopenmp, so auditwheel vendors the image's libgomp. - - 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: pyagrum-${{ matrix.version }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish pyagrum ${{ matrix.version }} diff --git a/.github/workflows/build-pycauset.yml b/.github/workflows/build-pycauset.yml index d9e9dd261cf..ff38db43c70 100644 --- a/.github/workflows/build-pycauset.yml +++ b/.github/workflows/build-pycauset.yml @@ -121,36 +121,19 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pycauset ${{ 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: - PYCAUSET_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: pycauset + version: ${{ matrix.version }} # auditwheel vendors the image's libgomp (OpenMP) and OpenBLAS' 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: pycauset-${{ env.PYCAUSET_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish pycauset ${{ matrix.version }} diff --git a/.github/workflows/build-pycryptosat.yml b/.github/workflows/build-pycryptosat.yml index 9adc93da37c..481d49575dd 100644 --- a/.github/workflows/build-pycryptosat.yml +++ b/.github/workflows/build-pycryptosat.yml @@ -100,35 +100,18 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pycryptosat ${{ 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: - PYCRYPTOSAT_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 gmp - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: pycryptosat-${{ env.PYCRYPTOSAT_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: pycryptosat + version: ${{ matrix.version }} + packages: gcc gmp publish: name: Publish pycryptosat ${{ matrix.version }} diff --git a/.github/workflows/build-pycurl.yml b/.github/workflows/build-pycurl.yml index fe9485c4be6..8866d35037c 100644 --- a/.github/workflows/build-pycurl.yml +++ b/.github/workflows/build-pycurl.yml @@ -206,40 +206,21 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pycurl ${{ 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 pycurl ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - PYCURL_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: pycurl + version: ${{ matrix.version }} # keyutils-libs/libcap/libidn2/libssh/libunistring/libxcrypt/pcre2/systemd-libs # are the copyleft (GPL/LGPL) libraries auditwheel vendors out of the build # image alongside libcurl; the rest of the closure is permissively licensed. - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: >- - gcc keyutils-libs libcap libidn2 libssh libunistring libxcrypt - pcre2 systemd-libs - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: pycurl-${{ env.PYCURL_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc keyutils-libs libcap libidn2 libssh libunistring libxcrypt pcre2 systemd-libs publish: name: Publish pycurl ${{ matrix.version }} diff --git a/.github/workflows/build-pydivsufsort.yml b/.github/workflows/build-pydivsufsort.yml index 18c00d69b6c..a418188d3d1 100644 --- a/.github/workflows/build-pydivsufsort.yml +++ b/.github/workflows/build-pydivsufsort.yml @@ -116,37 +116,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pydivsufsort ${{ 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: - PYDIVSUFSORT_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: pydivsufsort + version: ${{ matrix.version }} # libdivsufsort is built with -DUSE_OPENMP=ON, dynamically linking the # image's libgomp, which auditwheel then vendors 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: pydivsufsort-${{ env.PYDIVSUFSORT_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish pydivsufsort ${{ matrix.version }} diff --git a/.github/workflows/build-pyfftw.yml b/.github/workflows/build-pyfftw.yml index 57341c9870f..276cb9baf95 100644 --- a/.github/workflows/build-pyfftw.yml +++ b/.github/workflows/build-pyfftw.yml @@ -118,36 +118,19 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pyfftw ${{ 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: - PYFFTW_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: pyfftw + version: ${{ matrix.version }} # auditwheel vendors libfftw3* (GPL-2.0-or-later) and the -fopenmp libgomp. - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: gcc fftw - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: pyfftw-${{ env.PYFFTW_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc fftw publish: name: Publish pyfftw ${{ matrix.version }} diff --git a/.github/workflows/build-pygame-ce.yml b/.github/workflows/build-pygame-ce.yml index e79a2c48546..98d3f04de28 100644 --- a/.github/workflows/build-pygame-ce.yml +++ b/.github/workflows/build-pygame-ce.yml @@ -231,39 +231,22 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pygame-ce ${{ matrix.version }} needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Collect GPL sources for pygame-ce ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv strategy: fail-fast: false matrix: version: ${{ fromJSON(needs.setup.outputs.versions) }} - - env: - PYGAME_CE_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: pygame-ce + version: ${{ matrix.version }} # Every copyleft library auditwheel vendors out of the build image (mpg123 and # jbigkit-libs are GPL; flac-libs, libzstd, freetype are dual/mixed licensed # and dnf resolves them to their copyleft option here), same set as # build-pygame.yml minus graphite2 (harfbuzz isn't built for this port). - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: alsa-lib flac-libs freetype jbigkit-libs libzstd mpg123-libs - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: pygame-ce-${{ env.PYGAME_CE_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: alsa-lib flac-libs freetype jbigkit-libs libzstd mpg123-libs publish: name: Publish pygame-ce ${{ matrix.version }} diff --git a/.github/workflows/build-pygame.yml b/.github/workflows/build-pygame.yml index 2085431a454..99e0b4b7ef8 100644 --- a/.github/workflows/build-pygame.yml +++ b/.github/workflows/build-pygame.yml @@ -205,38 +205,21 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pygame ${{ 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 pygame ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - PYGAME_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: pygame + version: ${{ matrix.version }} # Every copyleft library auditwheel vendors out of the build image (mpg123 and # jbigkit-libs are GPL; flac-libs, libzstd, freetype and graphite2 are dual/mixed # licensed and dnf resolves them to their copyleft option here). - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: alsa-lib flac-libs freetype graphite2 jbigkit-libs libzstd mpg123-libs - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: pygame-${{ env.PYGAME_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: alsa-lib flac-libs freetype graphite2 jbigkit-libs libzstd mpg123-libs publish: name: Publish pygame ${{ matrix.version }} diff --git a/.github/workflows/build-pygraphviz.yml b/.github/workflows/build-pygraphviz.yml index 41c054d4f21..cdffeb25be8 100644 --- a/.github/workflows/build-pygraphviz.yml +++ b/.github/workflows/build-pygraphviz.yml @@ -240,38 +240,19 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pygraphviz ${{ 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 pygraphviz ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - PYGRAPHVIZ_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: pygraphviz + version: ${{ matrix.version }} # Every copyleft library auditwheel vendors out of the build image. - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: >- - cairo freetype fribidi glib2 graphite2 jbigkit-libs libdatrie - libmount libselinux libthai libtool-ltdl libzstd pango pcre2 xz-libs - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: pygraphviz-${{ env.PYGRAPHVIZ_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: cairo freetype fribidi glib2 graphite2 jbigkit-libs libdatrie libmount libselinux libthai libtool-ltdl libzstd pango pcre2 xz-libs publish: name: Publish pygraphviz ${{ matrix.version }} diff --git a/.github/workflows/build-pyjoulescope-driver.yml b/.github/workflows/build-pyjoulescope-driver.yml index b5ea5e6f3cd..de7c8272f67 100644 --- a/.github/workflows/build-pyjoulescope-driver.yml +++ b/.github/workflows/build-pyjoulescope-driver.yml @@ -230,37 +230,20 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for pyjoulescope-driver ${{ 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 pyjoulescope-driver ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - PYJOULESCOPE_DRIVER_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: pyjoulescope-driver + version: ${{ matrix.version }} # libcap/systemd-libs are the copyleft (GPL/LGPL) libraries auditwheel vendors # out of the build image alongside libudev. - - 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: pyjoulescope-driver-${{ env.PYJOULESCOPE_DRIVER_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc libcap systemd-libs publish: name: Publish pyjoulescope-driver ${{ matrix.version }} diff --git a/.github/workflows/build-pykdtree.yml b/.github/workflows/build-pykdtree.yml index 7d661da33fb..0d2aeb4c177 100644 --- a/.github/workflows/build-pykdtree.yml +++ b/.github/workflows/build-pykdtree.yml @@ -115,37 +115,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pykdtree ${{ 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: - PYKDTREE_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: pykdtree + version: ${{ matrix.version }} # pykdtree links -lgomp on Linux by default (setup.py's OMP probe), so # auditwheel vendors the image's libgomp into pykdtree.libs/. - - 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: pykdtree-${{ env.PYKDTREE_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish pykdtree ${{ matrix.version }} diff --git a/.github/workflows/build-pykvfinder.yml b/.github/workflows/build-pykvfinder.yml index 5cbd0f1a1ec..4c30941f19e 100644 --- a/.github/workflows/build-pykvfinder.yml +++ b/.github/workflows/build-pykvfinder.yml @@ -66,30 +66,18 @@ jobs: cibw-build: "${{ matrix.python }}-${{ matrix.platform }}_riscv64" cibw-environment-linux: "PIP_ONLY_BINARY=numpy,matplotlib,pillow,contourpy,kiwisolver" gpl_sources: + name: Collect GPL sources for pykvfinder ${{ 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 pykvfinder ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - env: - PYKVFINDER_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: pykvfinder-${{ env.PYKVFINDER_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: pykvfinder + version: ${{ matrix.version }} + packages: gcc publish: name: Publish pykvfinder ${{ matrix.version }} diff --git a/.github/workflows/build-pylibczirw.yml b/.github/workflows/build-pylibczirw.yml index 7b3b71edee9..d8093e8eab0 100644 --- a/.github/workflows/build-pylibczirw.yml +++ b/.github/workflows/build-pylibczirw.yml @@ -135,32 +135,18 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for pylibczirw ${{ matrix.version }} needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Collect GPL sources ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv strategy: fail-fast: false matrix: version: ${{ fromJSON(needs.setup.outputs.versions) }} - env: - PYLIBCZIRW_VERSION: ${{ matrix.version }} - steps: - - 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: pylibczirw-${{ env.PYLIBCZIRW_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: pylibczirw + version: ${{ matrix.version }} + packages: gcc publish: name: Publish pylibczirw ${{ matrix.version }} diff --git a/.github/workflows/build-pymetis.yml b/.github/workflows/build-pymetis.yml index b9a859fc3a1..6544ac6e098 100644 --- a/.github/workflows/build-pymetis.yml +++ b/.github/workflows/build-pymetis.yml @@ -115,36 +115,19 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pymetis ${{ 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 pymetis ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - PYMETIS_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: pymetis + version: ${{ matrix.version }} # The musllinux wheel vendors the image's libstdc++ and libgcc_s (gotcha 409). - - 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: pymetis-${{ env.PYMETIS_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish pymetis ${{ matrix.version }} diff --git a/.github/workflows/build-pyramids-gis.yml b/.github/workflows/build-pyramids-gis.yml index 9476a20183c..a237c53f8c6 100644 --- a/.github/workflows/build-pyramids-gis.yml +++ b/.github/workflows/build-pyramids-gis.yml @@ -245,36 +245,19 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for pyramids-gis ${{ 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: - PYRAMIDS_GIS_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: pyramids-gis + version: ${{ matrix.version }} # libgdal links OpenMP, so auditwheel vendors the image's libgomp. - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.BASEIMAGE }} - packages: gcc - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: pyramids-gis-${{ env.PYRAMIDS_GIS_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish pyramids-gis ${{ matrix.version }} diff --git a/.github/workflows/build-pyrealsense2.yml b/.github/workflows/build-pyrealsense2.yml index 1670e640936..a50685aca4a 100644 --- a/.github/workflows/build-pyrealsense2.yml +++ b/.github/workflows/build-pyrealsense2.yml @@ -210,37 +210,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pyrealsense2 ${{ 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 pyrealsense2 ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - PYREALSENSE2_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: pyrealsense2 + version: ${{ matrix.version }} # libcap/libusb1/systemd-libs are the copyleft (LGPL) libraries auditwheel vendors # out of the build image alongside libusb/libudev. - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: gcc libcap libusb1 systemd-libs - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: pyrealsense2-${{ env.PYREALSENSE2_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc libcap libusb1 systemd-libs publish: name: Publish pyrealsense2 ${{ matrix.version }} diff --git a/.github/workflows/build-pyscf.yml b/.github/workflows/build-pyscf.yml index 062ce8d080f..151c871c0b6 100644 --- a/.github/workflows/build-pyscf.yml +++ b/.github/workflows/build-pyscf.yml @@ -208,37 +208,20 @@ jobs: SCRIPT gpl_sources: + name: Collect GPL sources for pyscf ${{ 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: - PYSCF_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: pyscf + version: ${{ matrix.version }} # OpenBLAS is compiled with gfortran and pyscf links OpenMP, so # auditwheel vendors the image's libgfortran and libgomp. - - 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: pyscf-${{ env.PYSCF_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish pyscf ${{ matrix.version }} diff --git a/.github/workflows/build-pyscipopt.yml b/.github/workflows/build-pyscipopt.yml index e6dd4c617c3..82822a607b9 100644 --- a/.github/workflows/build-pyscipopt.yml +++ b/.github/workflows/build-pyscipopt.yml @@ -253,35 +253,19 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pyscipopt ${{ 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 pyscipopt ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - env: - PYSCIPOPT_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: pyscipopt + version: ${{ matrix.version }} # auditwheel vendors the image's libgfortran (MUMPS and LAPACK are Fortran). - - 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: pyscipopt-${{ env.PYSCIPOPT_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish pyscipopt ${{ matrix.version }} diff --git a/.github/workflows/build-pysjef.yml b/.github/workflows/build-pysjef.yml index 8fbf3f16a88..181f833c264 100644 --- a/.github/workflows/build-pysjef.yml +++ b/.github/workflows/build-pysjef.yml @@ -125,36 +125,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pysjef ${{ 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: - PYSJEF_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: pysjef + version: ${{ matrix.version }} # auditwheel vendors the GCC C++ runtime (libstdc++/libgcc_s) into the # musllinux wheels. - - 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: pysjef-${{ env.PYSJEF_VERSION }}-gpl-sources - path: gpl-sources.tar + packages: gcc publish: name: Publish pysjef ${{ matrix.version }} diff --git a/.github/workflows/build-pytetwild.yml b/.github/workflows/build-pytetwild.yml index bffb106cb6e..3353bc4218e 100644 --- a/.github/workflows/build-pytetwild.yml +++ b/.github/workflows/build-pytetwild.yml @@ -204,34 +204,18 @@ jobs: run: pytest -v -s gpl_sources: + name: Collect GPL sources for pytetwild ${{ 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, gmp) for pytetwild ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - PYTETWILD_VERSION: ${{ matrix.version }} - - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: gcc gmp - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: pytetwild-${{ env.PYTETWILD_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: pytetwild + version: ${{ matrix.version }} + packages: gcc gmp publish: name: Publish pytetwild ${{ matrix.version }} diff --git a/.github/workflows/build-python-active-directory.yml b/.github/workflows/build-python-active-directory.yml index 2af33853278..842314231f2 100644 --- a/.github/workflows/build-python-active-directory.yml +++ b/.github/workflows/build-python-active-directory.yml @@ -183,37 +183,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for python-active-directory ${{ 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 python-active-directory ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - PYTHON_ACTIVE_DIRECTORY_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: python-active-directory + version: ${{ matrix.version }} # keyutils-libs is the one copyleft library auditwheel vendors out of # the build image alongside libkrb5 (same krb5 stack as ssh-python). - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: gcc keyutils-libs - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: python-active-directory-${{ env.PYTHON_ACTIVE_DIRECTORY_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc keyutils-libs publish: name: Publish python-active-directory ${{ matrix.version }} diff --git a/.github/workflows/build-pytomlpp.yml b/.github/workflows/build-pytomlpp.yml index 04b265a476f..61602d1c0bb 100644 --- a/.github/workflows/build-pytomlpp.yml +++ b/.github/workflows/build-pytomlpp.yml @@ -115,37 +115,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for pytomlpp ${{ 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 pytomlpp ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - PYTOMLPP_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: pytomlpp + version: ${{ matrix.version }} # auditwheel's musllinux policy does not allowlist the GCC runtime, so the # musllinux wheel vendors the image's libstdc++ and libgcc_s (gotcha 409). - - 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: pytomlpp-${{ env.PYTOMLPP_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish pytomlpp ${{ matrix.version }} diff --git a/.github/workflows/build-pywhispercpp.yml b/.github/workflows/build-pywhispercpp.yml index e881ac8a6f2..67326159b45 100644 --- a/.github/workflows/build-pywhispercpp.yml +++ b/.github/workflows/build-pywhispercpp.yml @@ -117,36 +117,19 @@ jobs: done gpl_sources: + name: Collect GPL sources for pywhispercpp ${{ 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: - PYWHISPERCPP_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: pywhispercpp + version: ${{ matrix.version }} # ggml builds with OpenMP, so auditwheel vendors the image's libgomp. - - 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: pywhispercpp-${{ env.PYWHISPERCPP_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish pywhispercpp ${{ matrix.version }} diff --git a/.github/workflows/build-qiskit-aer.yml b/.github/workflows/build-qiskit-aer.yml index 7f70c6bef44..f7e7a4e9934 100644 --- a/.github/workflows/build-qiskit-aer.yml +++ b/.github/workflows/build-qiskit-aer.yml @@ -144,37 +144,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for qiskit-aer ${{ 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: - QISKIT_AER_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: qiskit-aer + version: ${{ matrix.version }} # OpenBLAS is compiled with gfortran, so auditwheel vendors the image's # libgfortran into qiskit_aer.libs/. - - 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: qiskit-aer-${{ env.QISKIT_AER_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish qiskit-aer ${{ matrix.version }} diff --git a/.github/workflows/build-rawpy.yml b/.github/workflows/build-rawpy.yml index 60fee5948eb..5c3c74fa013 100644 --- a/.github/workflows/build-rawpy.yml +++ b/.github/workflows/build-rawpy.yml @@ -78,24 +78,18 @@ jobs: cibw-test-command: "python -c \"import importlib.metadata as m; names={p.name for p in m.files('rawpy') if '.dist-info/licenses/' in str(p)}; assert names == {'LICENSE','LICENSE.LibRaw','LICENSE.lcms2','LICENSE.libjpeg-turbo','LICENSE.jasper'}, names\" && python -m pytest -v test" gpl_sources: - name: Collect GPL sources (gcc) for rawpy ${{ matrix.version }} + name: Collect GPL sources for rawpy ${{ matrix.version }} needs: [setup] if: needs.setup.outputs.versions != '[]' - runs-on: ubuntu-24.04-riscv strategy: fail-fast: false matrix: version: ${{ fromJSON(needs.setup.outputs.versions) }} - steps: - - uses: riseproject-dev/python-wheels/actions/collect-gpl-sources@main - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: rawpy-${{ matrix.version }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: rawpy + version: ${{ matrix.version }} + packages: gcc publish: name: Publish rawpy ${{ matrix.version }} diff --git a/.github/workflows/build-ray-haproxy.yml b/.github/workflows/build-ray-haproxy.yml index a65e245fe1c..0202ed1ac83 100644 --- a/.github/workflows/build-ray-haproxy.yml +++ b/.github/workflows/build-ray-haproxy.yml @@ -198,35 +198,18 @@ jobs: ray-haproxy-src/ci/verify-vendoring.sh "$BINARY" "$(dirname "$BINARY")/lib" gpl_sources: + name: Collect GPL sources for ray-haproxy ${{ 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 ray-haproxy ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - RAY_HAPROXY_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 libxcrypt - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: ray-haproxy-${{ env.RAY_HAPROXY_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: ray-haproxy + version: ${{ matrix.version }} + packages: gcc libxcrypt publish: name: Publish ray-haproxy ${{ matrix.version }} diff --git a/.github/workflows/build-regopy.yml b/.github/workflows/build-regopy.yml index 9240874a30a..0ea51c8ca40 100644 --- a/.github/workflows/build-regopy.yml +++ b/.github/workflows/build-regopy.yml @@ -105,33 +105,19 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for regopy ${{ 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 - - 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: regopy + version: ${{ matrix.version }} # auditwheel vendors the GCC runtime (libstdc++, libgcc_s) into the musllinux wheels. - - 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: regopy-${{ matrix.version }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish regopy ${{ matrix.version }} diff --git a/.github/workflows/build-runai-model-streamer-azure.yml b/.github/workflows/build-runai-model-streamer-azure.yml index da5bbf032e7..a46364a180f 100644 --- a/.github/workflows/build-runai-model-streamer-azure.yml +++ b/.github/workflows/build-runai-model-streamer-azure.yml @@ -455,35 +455,18 @@ jobs: pytest -v azure/ gpl_sources: + name: Collect GPL sources for runai-model-streamer-azure ${{ 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 runai-model-streamer-azure ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - RUNAI_MODEL_STREAMER_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: runai-model-streamer-azure-${{ env.RUNAI_MODEL_STREAMER_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: runai-model-streamer-azure + version: ${{ matrix.version }} + packages: gcc publish: name: Publish runai-model-streamer-azure ${{ matrix.version }} diff --git a/.github/workflows/build-runai-model-streamer-gcs.yml b/.github/workflows/build-runai-model-streamer-gcs.yml index fe5335e086a..6b8ff5fa7af 100644 --- a/.github/workflows/build-runai-model-streamer-gcs.yml +++ b/.github/workflows/build-runai-model-streamer-gcs.yml @@ -340,35 +340,18 @@ jobs: pytest -v gcs/ gpl_sources: + name: Collect GPL sources for runai-model-streamer-gcs ${{ 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 runai-model-streamer-gcs ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - RUNAI_MODEL_STREAMER_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: runai-model-streamer-gcs-${{ env.RUNAI_MODEL_STREAMER_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: runai-model-streamer-gcs + version: ${{ matrix.version }} + packages: gcc publish: name: Publish runai-model-streamer-gcs ${{ matrix.version }} diff --git a/.github/workflows/build-runai-model-streamer-s3.yml b/.github/workflows/build-runai-model-streamer-s3.yml index 7fba31dc410..0817b13ff40 100644 --- a/.github/workflows/build-runai-model-streamer-s3.yml +++ b/.github/workflows/build-runai-model-streamer-s3.yml @@ -438,35 +438,18 @@ jobs: pytest -v s3/ gpl_sources: + name: Collect GPL sources for runai-model-streamer-s3 ${{ 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 runai-model-streamer-s3 ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - RUNAI_MODEL_STREAMER_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: runai-model-streamer-s3-${{ env.RUNAI_MODEL_STREAMER_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: runai-model-streamer-s3 + version: ${{ matrix.version }} + packages: gcc publish: name: Publish runai-model-streamer-s3 ${{ matrix.version }} diff --git a/.github/workflows/build-runai-model-streamer.yml b/.github/workflows/build-runai-model-streamer.yml index 37b7c7e09b7..4aa813a9b94 100644 --- a/.github/workflows/build-runai-model-streamer.yml +++ b/.github/workflows/build-runai-model-streamer.yml @@ -339,35 +339,18 @@ jobs: python -m unittest discover -b runai_model_streamer gpl_sources: + name: Collect GPL sources for runai-model-streamer ${{ 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 runai-model-streamer ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - RUNAI_MODEL_STREAMER_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: runai-model-streamer-${{ env.RUNAI_MODEL_STREAMER_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: runai-model-streamer + version: ${{ matrix.version }} + packages: gcc publish: name: Publish runai-model-streamer ${{ matrix.version }} diff --git a/.github/workflows/build-scikit-bio.yml b/.github/workflows/build-scikit-bio.yml index d26fd9b9d8a..67c1b0985c8 100644 --- a/.github/workflows/build-scikit-bio.yml +++ b/.github/workflows/build-scikit-bio.yml @@ -115,36 +115,19 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for scikit-bio ${{ 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 scikit-bio ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - SCIKIT_BIO_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: scikit-bio + version: ${{ matrix.version }} # The extensions build with -fopenmp, so auditwheel vendors the image's libgomp. - - 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: scikit-bio-${{ env.SCIKIT_BIO_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish scikit-bio ${{ matrix.version }} diff --git a/.github/workflows/build-scikit-learn.yml b/.github/workflows/build-scikit-learn.yml index 5372ee854b5..5c667d72a74 100644 --- a/.github/workflows/build-scikit-learn.yml +++ b/.github/workflows/build-scikit-learn.yml @@ -82,33 +82,20 @@ jobs: cibw-test-command: "bash {project}/build_tools/wheels/test_wheels.sh {project}" gpl_sources: + name: Collect GPL sources for scikit-learn ${{ matrix.version }} needs: [setup] if: needs.setup.outputs.versions != '[]' strategy: fail-fast: false matrix: version: ${{ fromJSON(needs.setup.outputs.versions) }} - # auditwheel vendors the image's libgomp into the wheel, as upstream's own - # build_tools/wheels/LICENSE_linux.txt documents. - name: Collect GPL sources (gcc) for scikit-learn ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - SKLEARN_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: scikit-learn-${{ env.SKLEARN_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: scikit-learn + version: ${{ matrix.version }} + # auditwheel vendors the image's libgomp into the wheel, as upstream's own + # build_tools/wheels/LICENSE_linux.txt documents. + packages: gcc publish: name: Publish scikit-learn ${{ matrix.version }} diff --git a/.github/workflows/build-scikit-misc.yml b/.github/workflows/build-scikit-misc.yml index d3e0100660d..de1bfd28555 100644 --- a/.github/workflows/build-scikit-misc.yml +++ b/.github/workflows/build-scikit-misc.yml @@ -67,33 +67,20 @@ jobs: # build from sdist there, same as upstream's own build-time resolution. cibw-environment-linux: "PIP_ONLY_BINARY=numpy" gpl_sources: + name: Collect GPL sources for scikit-misc ${{ matrix.version }} needs: [setup] if: needs.setup.outputs.versions != '[]' strategy: fail-fast: false matrix: version: ${{ fromJSON(needs.setup.outputs.versions) }} - # scikit-misc compiles real Fortran (blas_lite.f, linpack_lite.f, loessf.f) - # with the image's gfortran, so auditwheel vendors its libgfortran runtime. - name: Collect GPL sources (gcc) for scikit-misc ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - SCIKIT_MISC_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: scikit-misc-${{ matrix.version }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: scikit-misc + version: ${{ matrix.version }} + # scikit-misc compiles real Fortran (blas_lite.f, linpack_lite.f, loessf.f) + # with the image's gfortran, so auditwheel vendors its libgfortran runtime. + packages: gcc publish: name: Publish scikit-misc ${{ matrix.version }} diff --git a/.github/workflows/build-scikit-network.yml b/.github/workflows/build-scikit-network.yml index c4d2288c01a..8bd669959f7 100644 --- a/.github/workflows/build-scikit-network.yml +++ b/.github/workflows/build-scikit-network.yml @@ -73,36 +73,19 @@ jobs: cibw-test-command: "python -m pytest --pyargs sknetwork -q" gpl_sources: + name: Collect GPL sources for scikit-network ${{ 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 scikit-network ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - SCIKIT_NETWORK_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: scikit-network + version: ${{ matrix.version }} # The extensions build with -fopenmp, so auditwheel vendors the image's libgomp. - - 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: scikit-network-${{ env.SCIKIT_NETWORK_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish scikit-network ${{ matrix.version }} diff --git a/.github/workflows/build-scipy-openblas32.yml b/.github/workflows/build-scipy-openblas32.yml index 9ccb9db941b..cecdc9ae9bf 100644 --- a/.github/workflows/build-scipy-openblas32.yml +++ b/.github/workflows/build-scipy-openblas32.yml @@ -260,37 +260,24 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for scipy-openblas32 ${{ 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 scipy-openblas32 ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - OPENBLAS_VERSION: ${{ matrix.version }} - - steps: + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: scipy-openblas32 + version: ${{ matrix.version }} # OpenBLAS's Fortran code is built with gfortran; ci-repair-wheel.sh # RPATH-patches the manylinux image's libgfortran into the wheel. # Only the manylinux leg is collected here - the manylinux-image RPM # tooling this action uses has no musllinux/APK equivalent yet. If the # musllinux build turns out to also vendor a dynamic libgfortran, this # needs a follow-up with an apk-based source collector. - - 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 gcc-gfortran - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: scipy-openblas32-${{ env.OPENBLAS_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc gcc-gfortran publish: name: Publish scipy-openblas32 ${{ matrix.version }} diff --git a/.github/workflows/build-scipy-openblas64.yml b/.github/workflows/build-scipy-openblas64.yml index 707ea2972b7..e76e3235c5d 100644 --- a/.github/workflows/build-scipy-openblas64.yml +++ b/.github/workflows/build-scipy-openblas64.yml @@ -221,31 +221,18 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for scipy-openblas64 ${{ 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 scipy-openblas64 ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - OPENBLAS_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 gcc-gfortran - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: scipy-openblas64-${{ env.OPENBLAS_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: scipy-openblas64 + version: ${{ matrix.version }} + packages: gcc gcc-gfortran publish: name: Publish scipy-openblas64 ${{ matrix.version }} diff --git a/.github/workflows/build-scs.yml b/.github/workflows/build-scs.yml index 4e3cef2f70d..2ebe6e6029d 100644 --- a/.github/workflows/build-scs.yml +++ b/.github/workflows/build-scs.yml @@ -120,37 +120,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for scs ${{ 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: - SCS_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: scs + version: ${{ matrix.version }} # OpenBLAS is compiled with gfortran, so auditwheel vendors the image's # libgfortran into scs.libs/. - - 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: scs-${{ env.SCS_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish scs ${{ matrix.version }} diff --git a/.github/workflows/build-sdbus.yml b/.github/workflows/build-sdbus.yml index ded8c8b4a75..807a9fa1474 100644 --- a/.github/workflows/build-sdbus.yml +++ b/.github/workflows/build-sdbus.yml @@ -239,37 +239,20 @@ jobs: cibw-test-command: "cd {package} && python3 -m unittest discover --verbose" gpl_sources: + name: Collect GPL sources for sdbus ${{ 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 sdbus ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - SDBUS_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: sdbus + 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: sdbus-${{ env.SDBUS_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc libcap systemd-libs publish: name: Publish sdbus ${{ matrix.version }} diff --git a/.github/workflows/build-simplepyble.yml b/.github/workflows/build-simplepyble.yml index 0899af60feb..e7a1714fb49 100644 --- a/.github/workflows/build-simplepyble.yml +++ b/.github/workflows/build-simplepyble.yml @@ -202,37 +202,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for simplepyble ${{ 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 simplepyble ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - SIMPLEPYBLE_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: simplepyble + version: ${{ matrix.version }} # dbus-libs/libcap/systemd-libs are the copyleft (GPL/LGPL) libraries auditwheel # vendors out of the build image alongside libdbus-1. - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: gcc dbus-libs libcap systemd-libs - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: simplepyble-${{ env.SIMPLEPYBLE_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc dbus-libs libcap systemd-libs publish: name: Publish simplepyble ${{ matrix.version }} diff --git a/.github/workflows/build-simsimd.yml b/.github/workflows/build-simsimd.yml index 53c4928cc64..6e442ce7cee 100644 --- a/.github/workflows/build-simsimd.yml +++ b/.github/workflows/build-simsimd.yml @@ -94,37 +94,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for simsimd ${{ 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: - SIMSIMD_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: simsimd + version: ${{ matrix.version }} # simsimd is built with -fopenmp, so auditwheel vendors the image's libgomp # into simsimd.libs/. - - 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: simsimd-${{ env.SIMSIMD_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish simsimd ${{ matrix.version }} diff --git a/.github/workflows/build-sleipnirgroup-jormungandr.yml b/.github/workflows/build-sleipnirgroup-jormungandr.yml index d051d6b1ccd..d917451ed60 100644 --- a/.github/workflows/build-sleipnirgroup-jormungandr.yml +++ b/.github/workflows/build-sleipnirgroup-jormungandr.yml @@ -142,34 +142,18 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for sleipnirgroup-jormungandr ${{ 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 sleipnirgroup-jormungandr ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - JORMUNGANDR_VERSION: ${{ matrix.version }} - - steps: - - 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: sleipnirgroup-jormungandr-${{ env.JORMUNGANDR_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: sleipnirgroup-jormungandr + version: ${{ matrix.version }} + packages: gcc publish: name: Publish sleipnirgroup-jormungandr ${{ matrix.version }} diff --git a/.github/workflows/build-small-gicp.yml b/.github/workflows/build-small-gicp.yml index 70c895a7941..295b37f27f3 100644 --- a/.github/workflows/build-small-gicp.yml +++ b/.github/workflows/build-small-gicp.yml @@ -109,35 +109,18 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for small-gicp ${{ 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: - SMALL_GICP_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: small-gicp-${{ env.SMALL_GICP_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: small-gicp + version: ${{ matrix.version }} + packages: gcc publish: name: Publish small-gicp ${{ matrix.version }} diff --git a/.github/workflows/build-smoldyn.yml b/.github/workflows/build-smoldyn.yml index 18a1e4ea9b7..144488b8bfd 100644 --- a/.github/workflows/build-smoldyn.yml +++ b/.github/workflows/build-smoldyn.yml @@ -147,36 +147,19 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for smoldyn ${{ 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 smoldyn ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - SMOLDYN_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: smoldyn + version: ${{ matrix.version }} # gcc runtime plus libtiff's jbigkit, vendored out of the build image. - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: gcc jbigkit-libs - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: smoldyn-${{ env.SMOLDYN_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc jbigkit-libs publish: name: Publish smoldyn ${{ matrix.version }} diff --git a/.github/workflows/build-soundfile.yml b/.github/workflows/build-soundfile.yml index e9ced16f3c8..045dcdcf720 100644 --- a/.github/workflows/build-soundfile.yml +++ b/.github/workflows/build-soundfile.yml @@ -135,36 +135,19 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for soundfile ${{ matrix.version }} needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Collect GPL sources - runs-on: ubuntu-24.04-riscv strategy: fail-fast: false matrix: version: ${{ fromJSON(needs.setup.outputs.versions) }} - - env: - SOUNDFILE_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: soundfile + version: ${{ matrix.version }} # auditwheel vendors the codec libraries libsndfile links into the wheel. - - uses: ./actions/collect-gpl-sources - with: - image: ${{ env.MANYLINUX_RISCV64_IMAGE }} - packages: flac lame mpg123 libogg libvorbis opus - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: soundfile-${{ env.SOUNDFILE_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: flac lame mpg123 libogg libvorbis opus publish: name: Publish soundfile ${{ matrix.version }} diff --git a/.github/workflows/build-sparse-dot-topn.yml b/.github/workflows/build-sparse-dot-topn.yml index ccdc2f3ca0d..d5384b65ffd 100644 --- a/.github/workflows/build-sparse-dot-topn.yml +++ b/.github/workflows/build-sparse-dot-topn.yml @@ -68,36 +68,19 @@ jobs: cibw-test-command: "pytest {project}/tests && python -c \"from sparse_dot_topn import _has_openmp_support;assert _has_openmp_support\"" gpl_sources: + name: Collect GPL sources for sparse-dot-topn ${{ 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: - SPARSE_DOT_TOPN_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: sparse-dot-topn + version: ${{ matrix.version }} # SDTN_ENABLE_OPENMP links libgomp, which auditwheel vendors into sparse_dot_topn.libs/. - - 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: sparse-dot-topn-${{ env.SPARSE_DOT_TOPN_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish sparse-dot-topn ${{ matrix.version }} diff --git a/.github/workflows/build-sparsediffpy.yml b/.github/workflows/build-sparsediffpy.yml index d13057d06ad..3ec9447ace6 100644 --- a/.github/workflows/build-sparsediffpy.yml +++ b/.github/workflows/build-sparsediffpy.yml @@ -120,33 +120,20 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for sparsediffpy ${{ matrix.version }} needs: [setup] if: needs.setup.outputs.versions != '[]' strategy: fail-fast: false matrix: version: ${{ fromJSON(needs.setup.outputs.versions) }} - # OpenBLAS is compiled with gfortran, so auditwheel vendors the image's - # libgfortran into sparsediffpy.libs/. - name: Collect GPL sources (gcc) for sparsediffpy ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - SPARSEDIFFPY_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: sparsediffpy-${{ env.SPARSEDIFFPY_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: sparsediffpy + version: ${{ matrix.version }} + # OpenBLAS is compiled with gfortran, so auditwheel vendors the image's + # libgfortran into sparsediffpy.libs/. + packages: gcc publish: name: Publish sparsediffpy ${{ matrix.version }} diff --git a/.github/workflows/build-ssh-python.yml b/.github/workflows/build-ssh-python.yml index 457988dc266..0d1d4c4f004 100644 --- a/.github/workflows/build-ssh-python.yml +++ b/.github/workflows/build-ssh-python.yml @@ -173,35 +173,18 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for ssh-python ${{ 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 ssh-python ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - SSH_PYTHON_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 keyutils-libs - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: ssh-python-${{ env.SSH_PYTHON_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: ssh-python + version: ${{ matrix.version }} + packages: gcc keyutils-libs publish: name: Publish ssh-python ${{ matrix.version }} diff --git a/.github/workflows/build-stripy.yml b/.github/workflows/build-stripy.yml index 6643915d57f..088f4a7a766 100644 --- a/.github/workflows/build-stripy.yml +++ b/.github/workflows/build-stripy.yml @@ -71,33 +71,20 @@ jobs: cibw-test-command: "pytest {project}/stripy/tests" gpl_sources: + name: Collect GPL sources for stripy ${{ matrix.version }} needs: [setup] if: needs.setup.outputs.versions != '[]' strategy: fail-fast: false matrix: version: ${{ fromJSON(needs.setup.outputs.versions) }} - # stripy compiles real Fortran (TRIPACK/STRIPACK/SRFPACK/SSRFPACK) with the - # image's gfortran, so auditwheel vendors its libgfortran runtime. - name: Collect GPL sources (gcc) for stripy ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - STRIPY_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: stripy-${{ matrix.version }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: stripy + version: ${{ matrix.version }} + # stripy compiles real Fortran (TRIPACK/STRIPACK/SRFPACK/SSRFPACK) with the + # image's gfortran, so auditwheel vendors its libgfortran runtime. + packages: gcc publish: name: Publish stripy ${{ matrix.version }} diff --git a/.github/workflows/build-symengine.yml b/.github/workflows/build-symengine.yml index c9f27926127..63d85caa9e4 100644 --- a/.github/workflows/build-symengine.yml +++ b/.github/workflows/build-symengine.yml @@ -113,35 +113,18 @@ jobs: cibw-test-command: "python -c \"import symengine, sys; sys.exit(0 if symengine.test() else 1)\"" gpl_sources: + name: Collect GPL sources for symengine ${{ 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: - SYMENGINE_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 gmp mpfr libmpc - output: gpl-sources.tar - - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: symengine-${{ env.SYMENGINE_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: symengine + version: ${{ matrix.version }} + packages: gcc gmp mpfr libmpc publish: name: Publish symengine ${{ matrix.version }} diff --git a/.github/workflows/build-tblite.yml b/.github/workflows/build-tblite.yml index 03e8cfee729..de3bc7893d2 100644 --- a/.github/workflows/build-tblite.yml +++ b/.github/workflows/build-tblite.yml @@ -168,29 +168,19 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for tblite ${{ matrix.version }} needs: [setup] if: needs.setup.outputs.versions != '[]' strategy: fail-fast: false matrix: version: ${{ fromJSON(needs.setup.outputs.versions) }} - # auditwheel vendors the image's libgfortran runtime. - name: Collect GPL sources (gcc) for tblite ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - 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: tblite-${{ matrix.version }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: tblite + version: ${{ matrix.version }} + # auditwheel vendors the image's libgfortran runtime. + packages: gcc publish: name: Publish tblite ${{ matrix.version }} diff --git a/.github/workflows/build-tl2cgen.yml b/.github/workflows/build-tl2cgen.yml index 800826be42b..f144315a16b 100644 --- a/.github/workflows/build-tl2cgen.yml +++ b/.github/workflows/build-tl2cgen.yml @@ -148,31 +148,19 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for tl2cgen ${{ 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 tl2cgen ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - env: - TL2CGEN_VERSION: ${{ matrix.version }} - - steps: + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: tl2cgen + version: ${{ matrix.version }} # auditwheel vendors the image's libgomp.so.1 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: tl2cgen-${{ env.TL2CGEN_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish tl2cgen ${{ matrix.version }} diff --git a/.github/workflows/build-treelite-runtime.yml b/.github/workflows/build-treelite-runtime.yml index bc340e0b637..e5badc999f6 100644 --- a/.github/workflows/build-treelite-runtime.yml +++ b/.github/workflows/build-treelite-runtime.yml @@ -166,31 +166,19 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for treelite-runtime ${{ 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 treelite-runtime ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - env: - TREELITE_RUNTIME_VERSION: ${{ matrix.version }} - - steps: + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: treelite-runtime + version: ${{ matrix.version }} # auditwheel vendors the image's libgomp.so.1 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: treelite-runtime-${{ env.TREELITE_RUNTIME_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish treelite-runtime ${{ matrix.version }} diff --git a/.github/workflows/build-treelite.yml b/.github/workflows/build-treelite.yml index 10f5c038c2c..29742887f90 100644 --- a/.github/workflows/build-treelite.yml +++ b/.github/workflows/build-treelite.yml @@ -113,31 +113,19 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for treelite ${{ 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 treelite ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - env: - TREELITE_VERSION: ${{ matrix.version }} - - steps: + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: treelite + version: ${{ matrix.version }} # auditwheel vendors the image's libgomp.so.1 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: treelite-${{ env.TREELITE_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish treelite ${{ matrix.version }} diff --git a/.github/workflows/build-usearch.yml b/.github/workflows/build-usearch.yml index 4508b04eabc..c8eed7317be 100644 --- a/.github/workflows/build-usearch.yml +++ b/.github/workflows/build-usearch.yml @@ -87,36 +87,20 @@ jobs: cibw-test-command: "pytest {package}/python/scripts" gpl_sources: + name: Collect GPL sources for usearch ${{ 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: - USEARCH_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: usearch + version: ${{ matrix.version }} # setup.py unconditionally passes -static-libstdc++ on Linux, embedding # the image's gcc runtime into usearch/compiled.*.so. - - 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: usearch-${{ env.USEARCH_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish usearch ${{ matrix.version }} diff --git a/.github/workflows/build-viennarna.yml b/.github/workflows/build-viennarna.yml index b77c2e8b41a..a7e199578ef 100644 --- a/.github/workflows/build-viennarna.yml +++ b/.github/workflows/build-viennarna.yml @@ -205,36 +205,19 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for viennarna ${{ 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: - VIENNARNA_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: viennarna + version: ${{ matrix.version }} # setup.cfg enables OpenMP, so auditwheel vendors the image's libgomp. - - 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: viennarna-${{ env.VIENNARNA_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish viennarna ${{ matrix.version }} diff --git a/.github/workflows/build-warp-lang.yml b/.github/workflows/build-warp-lang.yml index aedc5c02a25..b68381b7db9 100644 --- a/.github/workflows/build-warp-lang.yml +++ b/.github/workflows/build-warp-lang.yml @@ -196,31 +196,18 @@ jobs: ' gpl_sources: + name: Collect GPL sources for warp-lang ${{ 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 warp-lang ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - - env: - WARP_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: warp-lang-${{ env.WARP_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: warp-lang + version: ${{ matrix.version }} + packages: gcc publish: name: Publish warp-lang ${{ matrix.version }} diff --git a/.github/workflows/build-wntr.yml b/.github/workflows/build-wntr.yml index ee3a57180ec..ed39b963cda 100644 --- a/.github/workflows/build-wntr.yml +++ b/.github/workflows/build-wntr.yml @@ -176,36 +176,19 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for wntr ${{ 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: - WNTR_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: wntr + version: ${{ matrix.version }} # libepanetmsx links OpenMP, so auditwheel vendors the image's libgomp into wntr.libs/. - - 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: wntr-${{ env.WNTR_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish wntr ${{ matrix.version }} diff --git a/.github/workflows/build-xgboost-cpu.yml b/.github/workflows/build-xgboost-cpu.yml index 1c53e22f5c3..1e154970def 100644 --- a/.github/workflows/build-xgboost-cpu.yml +++ b/.github/workflows/build-xgboost-cpu.yml @@ -124,31 +124,19 @@ jobs: EOF gpl_sources: + name: Collect GPL sources for xgboost-cpu ${{ 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 xgboost-cpu ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - env: - XGBOOST_VERSION: ${{ matrix.version }} - - steps: + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: xgboost-cpu + version: ${{ matrix.version }} # auditwheel vendors the image's libgomp.so.1 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: xgboost-cpu-${{ env.XGBOOST_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish xgboost-cpu ${{ matrix.version }} diff --git a/.github/workflows/build-xgboost.yml b/.github/workflows/build-xgboost.yml index 02623bc643d..addc96b549c 100644 --- a/.github/workflows/build-xgboost.yml +++ b/.github/workflows/build-xgboost.yml @@ -131,31 +131,19 @@ jobs: if-no-files-found: error gpl_sources: + name: Collect GPL sources for xgboost ${{ 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 xgboost ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - env: - XGBOOST_VERSION: ${{ matrix.version }} - - steps: + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: xgboost + version: ${{ matrix.version }} # auditwheel vendors the image's libgomp.so.1 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: xgboost-${{ env.XGBOOST_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + packages: gcc publish: name: Publish xgboost ${{ matrix.version }} diff --git a/.github/workflows/build-xpress9.yml b/.github/workflows/build-xpress9.yml index f82fe3a7a11..e0337770090 100644 --- a/.github/workflows/build-xpress9.yml +++ b/.github/workflows/build-xpress9.yml @@ -69,30 +69,18 @@ jobs: cibw-test-command: "python -c \"import xpress9; assert xpress9.__file__.endswith('.so'), xpress9.__file__\" && python e2e_test.py" gpl_sources: + name: Collect GPL sources for xpress9 ${{ 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 xpress9 ${{ matrix.version }} - runs-on: ubuntu-24.04-riscv - env: - XPRESS9_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: xpress9-${{ env.XPRESS9_VERSION }}-gpl-sources - path: gpl-sources.tar - if-no-files-found: error + uses: $/.github/workflows/_collect-gpl-sources.yml + with: + package: xpress9 + version: ${{ matrix.version }} + packages: gcc publish: name: Publish xpress9 ${{ matrix.version }}