Skip to content

Commit

Permalink
More legible build matrix elements in non-Conan CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kyllingstad committed Nov 8, 2023
1 parent 5281c3f commit 0b9dc6f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci-cmake.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: libcosim CI CMake
name: libcosim CI without Conan

# This workflow is triggered on pushes to the repository.
on: [push]
Expand All @@ -10,8 +10,12 @@ jobs:
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release]
shared_libs: [ON, OFF]
# Note: The all-caps prefixes are part of CMake variable names, and
# therefore must be written exactly as they are. They're included here
# to make the build matrix easier to understand when viewed in the
# GitHub web interface.
build_type: [BUILD_TYPE=Debug, BUILD_TYPE=Release]
shared_libs: [SHARED_LIBS=ON, SHARED_LIBS=OFF]
timeout-minutes: 35

steps:
Expand Down Expand Up @@ -45,7 +49,7 @@ jobs:
#!/bin/bash
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DBUILD_SHARED_LIBS=${{ matrix.shared_libs }} /mnt/source
cmake -DCMAKE_${{ matrix.build_type }} -DBUILD_${{ matrix.shared_libs }} /mnt/source
cmake --build .
ctest --output-on-failure
EOF
Expand Down

0 comments on commit 0b9dc6f

Please sign in to comment.