Skip to content

Commit

Permalink
add single file install test
Browse files Browse the repository at this point in the history
  • Loading branch information
phlptp committed Aug 17, 2023
1 parent ff96dc2 commit 151de64
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ jobs:
- name: Build
run: meson compile -C build-meson

install-test:
install:
name: install tests
runs-on: ubuntu-latest
steps:
Expand All @@ -153,10 +153,10 @@ jobs:
- name: install
run: cmake --install build
- name: Run tests
run: ctest --output-on-failure
run: ctest --output-on-failure -L Packaging
working-directory: build

install-test-precompiled:
install-precompiled:
name: install tests precompiled
runs-on: ubuntu-latest
steps:
Expand All @@ -172,6 +172,23 @@ jobs:
- name: Run tests
run: ctest --output-on-failure -L Packaging
working-directory: build

install-single_file:
name: install tests single file
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_SINGLE_FILE=ON
- name: Build
run: cmake --build build -j2
- name: install
run: cmake --install build
- name: Run tests
run: ctest --output-on-failure -L Packaging
working-directory: build

cmake-config-ubuntu-2004:
name: CMake config check (Ubuntu 20.04)
Expand Down

0 comments on commit 151de64

Please sign in to comment.