summaryrefslogtreecommitdiff
path: root/.forgejo
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2026-02-19 16:26:59 +0100
committerJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2026-02-20 15:00:44 +0100
commit3435223fe1f40b7c7c0af0075cc773ea96645fa2 (patch)
tree242e71bae54feacd46673a7da2e323837d666262 /.forgejo
parent9f62267456332c5d6acff1e343870729cf23345a (diff)
Pip: Initial building through workflows
Diffstat (limited to '.forgejo')
-rw-r--r--.forgejo/workflows/pip.yml39
1 files changed, 39 insertions, 0 deletions
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