Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Artsishevsky <polter.rnd@gmail.com>
  • Loading branch information
polter-rnd committed Jun 8, 2024
1 parent 73a3ae7 commit 9941632
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
matrix:
os: [ubuntu-24.04, windows-2022]
build_type: [Release]
build_type: [Debug]
c_compiler: [gcc, clang, cl]
include:
- os: windows-2022
Expand Down Expand Up @@ -54,15 +54,27 @@ jobs:
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Install dependencies
if: runner.os == 'Linux'
run: sudo apt-get install -y libfmt-dev clang-tidy

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DENABLE_ANALYZERS=ON
-DENABLE_FORMATTERS=ON
-DENABLE_SANITIZERS=ON
-S ${{ github.workspace }}
- name: Check formatting
# Run only on Ubuntu 22.04 because we need clang-format >= 17.0 for this
if: matrix.os == 'ubuntu-24.04'
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --target formatcheck

- name: Build
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
Expand Down

0 comments on commit 9941632

Please sign in to comment.