Skip to content

Commit 7453e29

Browse files
committed
add single file install test
1 parent ff96dc2 commit 7453e29

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/tests.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139
- name: Build
140140
run: meson compile -C build-meson
141141

142-
install-test:
142+
install:
143143
name: install tests
144144
runs-on: ubuntu-latest
145145
steps:
@@ -153,10 +153,10 @@ jobs:
153153
- name: install
154154
run: cmake --install build
155155
- name: Run tests
156-
run: ctest --output-on-failure
156+
run: ctest --output-on-failure -L Packaging
157157
working-directory: build
158158

159-
install-test-precompiled:
159+
install-precompiled:
160160
name: install tests precompiled
161161
runs-on: ubuntu-latest
162162
steps:
@@ -172,6 +172,23 @@ jobs:
172172
- name: Run tests
173173
run: ctest --output-on-failure -L Packaging
174174
working-directory: build
175+
176+
install-single_file:
177+
name: install tests single file
178+
runs-on: ubuntu-latest
179+
steps:
180+
- uses: actions/checkout@v3
181+
with:
182+
submodules: true
183+
- name: Configure
184+
run: cmake -S . -B build -DCLI11_INSTALL_PACKAGE_TESTS=ON -DCMAKE_INSTALL_PREFIX=/home/runner/work/install -DCLI11_SINGLE_FILE=ON
185+
- name: Build
186+
run: cmake --build build -j2
187+
- name: install
188+
run: cmake --install build
189+
- name: Run tests
190+
run: ctest --output-on-failure -L Packaging
191+
working-directory: build
175192

176193
cmake-config-ubuntu-2004:
177194
name: CMake config check (Ubuntu 20.04)

0 commit comments

Comments
 (0)