From fb9a268bee379fde72bd4dd8f738ba07c98bd32a Mon Sep 17 00:00:00 2001 From: Philip Top Date: Tue, 15 Aug 2023 13:31:14 -0700 Subject: [PATCH] add precompiled package tests --- .github/workflows/tests.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 298d088ad..2b7e31c94 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -146,8 +146,6 @@ jobs: - uses: actions/checkout@v3 with: submodules: true - #- name: Add pkgconfig - # run: sudo apt-get update && sudo apt-get install -y pkgconfig - name: Configure run: cmake -S . -B build -DCLI11_INSTALL_PACKAGE_TESTS=ON -DCMAKE_INSTALL_PREFIX=/home/runner/work/install - name: Build @@ -157,6 +155,23 @@ jobs: - name: Run tests run: ctest --output-on-failure working-directory: build + + install-test-precompiled: + name: install tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - name: Configure + run: cmake -S . -B build -DCLI11_INSTALL_PACKAGE_TESTS=ON -DCMAKE_INSTALL_PREFIX=/home/runner/work/install -DCLI11_PRECOMPILED=ON + - name: Build + run: cmake --build build -j2 + - name: install + run: cmake --install build + - name: Run tests + run: ctest --output-on-failure + working-directory: build cmake-config-ubuntu-2004: name: CMake config check (Ubuntu 20.04)