From 52b735b1b97e5de19a7b1cac5b9392692c52fc0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Tue, 5 Jul 2022 14:27:02 -0400 Subject: [PATCH] ci/github: build Python Wheel --- .github/workflows/release-python.yml | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/release-python.yml diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml new file mode 100644 index 00000000..593e5ff3 --- /dev/null +++ b/.github/workflows/release-python.yml @@ -0,0 +1,36 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Create and publish Docker images + +on: + release: + types: [published] + +jobs: + build-and-push-deps-image: + name: Build Python Wheel package + runs-on: ubuntu-latest + container: ghcr.io/savoirfairelinux/opendht/opendht-deps:latest + + permissions: + contents: read + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: cmake + run: | + mkdir build && cd build && \ + cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DOPENDHT_C=Off -DOPENDHT_PEER_DISCOVERY=On -DOPENDHT_PYTHON=On -DOPENDHT_TOOLS=Off -DOPENDHT_PROXY_SERVER=On -DOPENDHT_PROXY_CLIENT=On + + - name: build + run: cd build && make dist + + - uses: actions/upload-artifact@v3 + with: + name: opendht-wheels-linux + path: build/python/dist/*.whl -- GitLab