Skip to content

Commit e87e567

Browse files
authored
More thorough install check (Linux) (#507)
* More thorough install check (Linux) * Correcting indentation. * the executable is called 'main'
1 parent ac069da commit e87e567

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ubuntu_install.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,17 @@ concurrency:
2323
jobs:
2424
ubuntu-build:
2525
runs-on: ubuntu-22.04
26+
strategy:
27+
matrix:
28+
include:
29+
- {shared: ON}
30+
- {shared: OFF}
2631
steps:
2732
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2833
- name: Setup Ninja
2934
run: sudo apt-get install ninja-build
3035
- name: Prepare
31-
run: cmake -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=destination -B build
36+
run: cmake -G Ninja -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCMAKE_INSTALL_PREFIX:PATH=destination -B build
3237
- name: Build
3338
run: cmake --build build -j=2
3439
- name: Install
@@ -37,3 +42,5 @@ jobs:
3742
run: cmake -DCMAKE_INSTALL_PREFIX:PATH=../../destination -S tests/installation -B buildbabyada
3843
- name: Build test package
3944
run: cmake --build buildbabyada
45+
- name: Run example
46+
run: ./buildbabyada/main

0 commit comments

Comments
 (0)