Skip to content

upstreaming: recover controller post-commit steps #106

upstreaming: recover controller post-commit steps

upstreaming: recover controller post-commit steps #106

Workflow file for this run

# SPDX-FileCopyrightText: 2026 The RISE Project

Check failure on line 1 in .github/workflows/build-vaex-core.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-vaex-core.yml

Invalid workflow file

(Line: 86, Col: 30): Unrecognized named-value: 'env'. Located at position 1 within expression: env.PCRE_VERSION
# SPDX-License-Identifier: MIT
---
# This workflow is based on the `build_wheels` job of
# https://github.com/vaexio/vaex/blob/core-v4.19.0/.github/workflows/wheel.yml
name: Build vaex-core wheels (riscv64)
on:
workflow_dispatch:
inputs:
version:
description: 'Version glob to (re)build; empty builds every version of docs/packages/vaex-core.yaml not released yet'
required: false
default: ''
cancel-in-progress:
description: Cancel an in-progress run in the same concurrency group.
required: false
type: boolean
default: true
pull_request:
branches: [main]
paths:
- '.github/workflows/build-vaex-core.yml'
- 'docs/packages/vaex-core.yaml'
push:
branches: [main]
paths:
- '.github/workflows/build-vaex-core.yml'
- 'docs/packages/vaex-core.yaml'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: ${{ case(github.event_name == 'pull_request', true, github.event_name == 'workflow_dispatch', inputs['cancel-in-progress'], false) }}
permissions:
contents: read # to fetch code (actions/checkout)
env:
MANYLINUX_RISCV64_IMAGE: quay.io/pypa/manylinux_2_39_riscv64
# Final PCRE1 release; superstrings needs libpcre + libpcrecpp (PCRE1, not PCRE2).
PCRE_VERSION: '8.45'
PCRE_SHA256: '4e6ce03e0336e8b4a3d6c2b70b1c5e18590a5673a98186da90d4f33c23defc09'
jobs:
setup:
uses: $/.github/workflows/_setup.yml
with:
package: vaex-core
version: ${{ inputs.version }}
build_wheels:
needs: [setup]
if: needs.setup.outputs.versions != '[]'
name: Build vaex-core ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.platform }}_riscv64
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.setup.outputs.matrix) }}
# The four C++ extensions (-O3 -g, heavily templated) take ~2h40m to
# compile on the riscv64 runner on their own; 180 left no headroom.
# vaex-core lives in a subdirectory of the vaex monorepo and vendors
# pybind11/string-view-lite/hopscotch-map/flat_hash_map as submodules.
uses: $/.github/workflows/_build-cibuildwheel.yml
with:
package: "vaex_core"
version: "${{ matrix.version }}"
repository: "vaexio/vaex"
ref: "core-v${{ matrix.version }}"
artifact-tag: "${{ matrix.python }}-${{ matrix.platform }}_riscv64"
timeout-minutes: 360
checkout-submodules: "true"
cibw-package-dir: "packages/vaex-core"
cibw-build: "${{ matrix.python }}-${{ matrix.platform }}_riscv64"
# superstrings links against pcre/pcrecpp. Upstream's
# bin/install_pcre.sh tries a distro package, then falls back to a
# source build. manylinux_2_39_riscv64 is Rocky Linux 10, and RHEL 10
# dropped PCRE1 (only pcre2 is left), so `dnf install pcre-devel`
# finds nothing. We take the source-build path with the final PCRE1
# release, using the flags distro packages use (no JIT: PCRE1's sljit
# has no riscv64 backend). --libdir=/usr/lib64 keeps the libraries on
# the riscv64 linker path (gotcha 140). auditwheel vendors
# libpcre/libpcrecpp into the wheel, so PCRE's BSD licence goes in
# too: setuptools' default LICEN[CS]E* glob picks it up from the
# package dir.
cibw-before-all-linux: >
cd /tmp &&
curl -fsSL --retry 5 -o pcre-${{ env.PCRE_VERSION }}.tar.gz https://sourceforge.net/projects/pcre/files/pcre/${{ env.PCRE_VERSION }}/pcre-${{ env.PCRE_VERSION }}.tar.gz/download &&
echo "${{ env.PCRE_SHA256 }} pcre-${{ env.PCRE_VERSION }}.tar.gz" | sha256sum -c - &&
tar xzf pcre-${{ env.PCRE_VERSION }}.tar.gz &&
(cd pcre-${{ env.PCRE_VERSION }} && ./configure --prefix=/usr --libdir=/usr/lib64 --disable-static --enable-cpp --enable-utf --enable-unicode-properties && make -j"$(nproc)" && make install) &&
cp pcre-${{ env.PCRE_VERSION }}/LICENCE /project/packages/vaex-core/LICENSE.pcre
# Upstream's import smoke test, plus a regex search so pcrecpp is
# really called, plus a check that the PCRE licence made it in.
cibw-test-command: >
python -c "import vaex, importlib.metadata as md;
df = vaex.from_arrays(x=[1,2], s=['ab', 'cd']); print(df);
assert df.s.str.contains('^a.').tolist() == [True, False];
n = {p.name for p in md.files('vaex-core') if '.dist-info/licenses/' in str(p)};
assert n == {'LICENSE.txt', 'LICENSE.pcre'}, n"
# Only the compiled distributions are forced to wheels. `:all:` also
# rejected aplus, a pure-Python requirement that only ships an sdist
# ("No matching distribution found for aplus", gotcha 488).
cibw-test-environment-linux: "PIP_ONLY_BINARY=numpy,pandas,pyarrow,blake3,pydantic-core,pyyaml"
publish:
name: Publish vaex-core ${{ matrix.version }}
needs: [setup, build_wheels]
if: needs.setup.outputs.versions != '[]'
strategy:
fail-fast: false
matrix:
version: ${{ fromJSON(needs.setup.outputs.versions) }}
permissions:
contents: write
pull-requests: write
uses: $/.github/workflows/_publish-wheel.yml
secrets:
app-private-key: ${{ secrets.RISEPROJECT_APP_PRIVATE_KEY }}
with:
matrix: ${{ needs.setup.outputs.matrix }}
artifact-pattern: vaex_core-${{ matrix.version }}-*-*_riscv64