From 55598014a2570521a8f2ffcae5270bcc8d6865ab Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 3 Aug 2023 08:52:04 +0200 Subject: [PATCH] github: test build of python package --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04316d33..ae2de9fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -118,6 +118,7 @@ jobs: git clean -fdx export CC="${{ matrix.cc }}" NO_GPG_SIGN=1 ./tools/build_release.sh BuildAll + cp libnl-*.tar.gz /tmp/ - name: Build out-of-tree and disable-static run: | @@ -138,4 +139,30 @@ jobs: export NLTST_SEED_RAND= make -j 5 check + - name: Build Python + run: | + sudo apt-get -y --no-install-recommends install \ + swig + git clean -fdx + pushd python + python setup.py build + python setup.py build + popd + if: ${{ matrix.cc == 'gcc' }} + + - name: Build Python from tarball + run: | + git clean -fdx + mkdir t + pushd t + tar -xvf /tmp/libnl-*.tar.gz + pushd libnl-*/ + pushd python + python setup.py build + python setup.py build + popd + popd + popd + if: ${{ matrix.cc == 'gcc' }} + - run: echo "🍏 This job's status is ${{ job.status }}."