From b860bd3ca128d7cfff7ff8a51043c2a0b3618837 Mon Sep 17 00:00:00 2001 From: pantor Date: Thu, 5 Sep 2024 22:10:36 +0200 Subject: [PATCH] test build package --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f84706..b9983c2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI on: [push, pull_request] jobs: - build: + build-and-test: runs-on: ${{ matrix.os }} strategy: @@ -18,9 +18,6 @@ jobs: - name: Get cross-platform /dev/null for hidden output run: echo "HIDDEN=$(python3 -c "import os; print(os.devnull)")" >> $GITHUB_ENV - - name: Install pybind11 - run: git clone --depth 1 --branch v2.13.1 https://github.com/pybind/pybind11.git - - name: Install valgrind if: matrix.os == 'ubuntu-latest' run: sudo apt-get update && sudo apt-get install -y valgrind @@ -63,6 +60,29 @@ jobs: ctest --test-dir ./build -T memcheck + build-package: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Configure and make + run: | + cmake -B build + cmake --build build -j2 -- package + + - name: Install package + working-directory: build + run: apt install ./ruckig-*.deb + + - name: Test building examples + working-directory: examples + run: | + mv CMakeLists-installed.txt CMakeLists.txt + cmake -B build + cmake --build build -j2 + + lint-python: runs-on: ubuntu-latest