From 3435223fe1f40b7c7c0af0075cc773ea96645fa2 Mon Sep 17 00:00:00 2001 From: Jeroen Wijenbergh Date: Thu, 19 Feb 2026 16:26:59 +0100 Subject: Pip: Initial building through workflows --- .forgejo/workflows/pip.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .forgejo/workflows/pip.yml diff --git a/.forgejo/workflows/pip.yml b/.forgejo/workflows/pip.yml new file mode 100644 index 0000000..6f35038 --- /dev/null +++ b/.forgejo/workflows/pip.yml @@ -0,0 +1,39 @@ +name: Build Pip Packages + +on: + push: + branches: + - '**' + release: + types: [published] + +jobs: + build-deb: + name: Pip build for ${{ matrix.image }} ${{ matrix.arch }} + strategy: + matrix: + # Add aarch64 here for ARM builds + arch: + - "x86_64" + runs-on: codeberg-small-lazy + container: + image: quay.io/pypa/manylinux_2_28_${{ matrix.arch }} + steps: + - name: Checkout Repository + run: git clone --depth 1 -b ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }} . + + - name: Install build dependencies + run: | + yum install -y golang python3 python3-setuptools python3-wheel wget + python3 -m pip install build + + - name: Get version + run: echo "COMMONVERSION=$(grep -o 'const Version = "[^"]*' internal/commonver/commonver.go | cut -d '"' -f 2)" >> "$GITHUB_ENV" + + - name: Build common + run: CGO_ENABLED=1 go build -buildvcs=false -tags=release -o lib/linux/amd64/libeduvpn_common-$COMMONVERSION.so -buildmode=c-shared ./exports + + - name: Build python + run: | + install lib/linux/amd64/libeduvpn_common-$COMMONVERSION.so -Dt wrappers/python/eduvpn_common/lib + python3 -m build --sdist --wheel wrappers/python -- cgit v1.2.3