From b18fff9cabef2457da33b2d2e666fcbfa8b0f4d4 Mon Sep 17 00:00:00 2001 From: rizesql Date: Sat, 20 Apr 2024 17:03:42 +0300 Subject: [PATCH] poate vcpkg merge --- .github/actions/configure-cmake/action.yml | 37 ++++++----------- .github/workflows/cmake.yml | 47 +++++++++------------- 2 files changed, 31 insertions(+), 53 deletions(-) diff --git a/.github/actions/configure-cmake/action.yml b/.github/actions/configure-cmake/action.yml index 80250a1..9dfca74 100644 --- a/.github/actions/configure-cmake/action.yml +++ b/.github/actions/configure-cmake/action.yml @@ -35,31 +35,20 @@ runs: ${{ env.BUILD_DIR }}/.ninja_log key: ${{ matrix.os }}-${{ matrix.cxx }}-ninja-cache-${{ hashFiles('CMakeLists.txt') }} restore-keys: ${{ matrix.os }}-${{ matrix.cxx }}-ninja-cache- - # - # - name: Install Protoc - # uses: arduino/setup-protoc@v3 - # with: - # version: "23.x" - # - name: Install Protobuf (Linux) - # if: runner.os == 'Linux' - # run: | - # sudo apt-get update - # sudo apt-get install -y --no-install-recommends \ - # libprotobuf-dev libprotoc-dev protobuf-compiler - # shell: bash - # - # - name: Install Protobuf (macOS) - # if: runner.os == 'macOS' - # run: | - # brew install protobuf - # shell: bash - # - # - name: Install Protobuf (Windows) - # if: runner.os == 'Windows' - # run: | - # choco install protoc - # shell: bash + + - uses: lukka/get-cmake@latest + - name: List $RUNNER_WORKSPACE before vcpkg is setup + run: find $RUNNER_WORKSPACE + shell: bash + + - name: Setup anew (or from cache) vcpkg (and does not build any package) + uses: lukka/run-vcpkg@v11 + + - name: Run CMake consuming CMakePreset.json and run vcpkg to build packages + uses: lukka/run-cmake@v10 +# with: +# configurePreset: 'ninja-multi-vcpkg' - run: | CMAKE_GENERATOR=${{ matrix.cmake_generator }} cmake -S ${GITHUB_WORKSPACE} -B ${{ env.BUILD_DIR }} \ diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index c39bc7f..73dabba 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -49,25 +49,6 @@ jobs: sudo apt-get update sudo apt-get install --no-install-recommends cppcheck - - name: Setup anew (or from cache) vcpkg (and does not build any package) - uses: lukka/run-vcpkg@v11 - - - name: Run CMake consuming CMakePreset.json and run vcpkg to build packages - uses: lukka/run-cmake@v10 - with: - configurePreset: 'ninja-multi-vcpkg' - -# - name: Install Protoc -# uses: arduino/setup-protoc@v3 -# with: -# version: "23.x" - -# - name: Install protobuf -# run: | -# sudo apt-get update -# sudo apt-get install -y --no-install-recommends \ -# libprotobuf-dev libprotoc-dev protobuf-compiler - # The flag CMAKE_EXPORT_COMPILE_COMMANDS generates compile_commands.json # which is used by cppcheck and clang-tidy - name: Configure CMake @@ -88,6 +69,20 @@ jobs: --suppress=useStlAlgorithm \ --error-exitcode=1 + +# - uses: lukka/get-cmake@latest +# - name: List $RUNNER_WORKSPACE before vcpkg is setup +# run: find $RUNNER_WORKSPACE +# shell: bash +# +# - name: Setup anew (or from cache) vcpkg (and does not build any package) +# uses: lukka/run-vcpkg@v11 +# +# - name: Run CMake consuming CMakePreset.json and run vcpkg to build packages +# uses: lukka/run-cmake@v10 + # with: + # configurePreset: 'ninja-multi-vcpkg' + clang-tidy: name: "Clang-Tidy" runs-on: ubuntu-22.04 @@ -110,16 +105,10 @@ jobs: sudo apt-get update sudo apt-get install --no-install-recommends clang-tidy-17 libc++-17-dev libc++abi-17-dev - - name: Install Protoc - uses: arduino/setup-protoc@v3 - with: - version: "23.x" - -# - name: Install protobuf -# run: | -# sudo apt-get update -# sudo apt-get install -y --no-install-recommends \ -# libprotobuf-dev libprotoc-dev protobuf-compiler=3.15.0 +# - name: Install Protoc +# uses: arduino/setup-protoc@v3 +# with: +# version: "23.x" - name: Configure CMake uses: ./.github/actions/configure-cmake