Skip to content

Commit

Permalink
CI: install fmtlib on Windows
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 Nov 7, 2024
1 parent d06dd55 commit 528ecaf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,14 @@ jobs:
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Install dependencies
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: sudo apt-get install -y libfmt-dev clang-tidy clang-format cmake-format cppcheck iwyu

- name: Install dependencies (Windows)
if: runner.os == 'Windows'
run: vcpkg install fmt

- 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
Expand All @@ -70,6 +74,7 @@ jobs:
-DENABLE_FORMATTERS=ON
-DENABLE_SANITIZERS=ON
-DENABLE_FMTLIB=${{ matrix.format_lib == 'fmtlib' && 'ON' || 'OFF' }}
-DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_INSTALLATION_ROOT }}\scripts\buildsystems\vcpkg.cmake
-S ${{ github.workspace }}
- name: Check formatting
Expand Down

0 comments on commit 528ecaf

Please sign in to comment.