From a4ec1bbd701e98ee5aeca5b0795775e484221139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C5=91rinc=20Serf=C5=91z=C5=91?= Date: Thu, 9 Jan 2025 22:06:24 +0100 Subject: [PATCH] fix(dependencies): Install specific versions of fmt and spdlog --- .github/workflows/ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd94d17..de98524 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,11 +22,19 @@ jobs: - name: Install prerequisites run: sudo apt-get update -y && sudo apt-get install -y libasound2-dev - libfmt-dev libfreetype-dev libsdl2-dev - libspdlog-dev nlohmann-json3-dev + - name: Install fmtlib + run: git clone --branch 11.0.2 https://github.com/fmtlib/fmt && + cmake -Sfmt -Bfmt/build -DFMT_DOC=OFF -DFMT_INSTALL=ON -DFMT_TEST=OFF -DCMAKE_BUILD_TYPE=Release -GNinja && + cmake --build fmt/build && + cmake --install fmt/build --prefix fmt/install + - name: Install spdlog + run: git clone --branch v1.14.1 https://github.com/gabime/spdlog && + cmake -Sspdlog -Bspdlog/build -DCMAKE_BUILD_TYPE=Release -GNinja && + cmake --build spdlog/build && + cmake --install spdlog/build --prefix spdlog/install - name: Configure CMake run: cmake -S ${{github.workspace}} @@ -36,6 +44,7 @@ jobs: -D MC_BUILD_NUMBER=${{github.run_number}} -D CPACK_GENERATOR=DEB -D CPACK_SYSTEM_NAME=$SYSTEM_NAME + -D CMAKE_INSTALL_PREFIX="fmt/install;spdlog/install" - name: Build run: cmake --build ${{github.workspace}}/build --target midiconn -j $(nproc) - name: Create DEB package