From 3165affd82aed74689b6640aff35ce2e04d034ed Mon Sep 17 00:00:00 2001 From: zig-for Date: Wed, 27 Dec 2023 15:11:17 -0800 Subject: [PATCH 1/2] Update CMakePresets.json --- CMakePresets.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CMakePresets.json b/CMakePresets.json index 04eedcb..5f46a6a 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -99,6 +99,16 @@ "VCPKG_TARGET_TRIPLET": "x64-linux-static-release" } }, + { + "name": "linux-x64-debug", + "displayName": "Linux x64 Debug", + "description": "Linux", + "inherits": "linux-base", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug", + "VCPKG_TARGET_TRIPLET": "x64-linux-static-debug" + } + }, { "name": "macos-x64-release", "displayName": "MacOS x64 Release", @@ -126,6 +136,11 @@ "configurePreset": "linux-x64-release", "displayName": "Linux x64 Release" }, + { + "name": "linux-x64-debug", + "configurePreset": "linux-x64-debug", + "displayName": "Linux x64 Debug" + }, { "name": "macos-x64-release", "configurePreset": "macos-x64-release", From 24dc65a23253ca0162034d8b357ac8d6e1f1dc0d Mon Sep 17 00:00:00 2001 From: zig-for Date: Wed, 27 Dec 2023 15:14:12 -0800 Subject: [PATCH 2/2] Linux debug --- .github/workflows/cmake.yml | 2 +- triplets/x64-linux-static-debug.cmake | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 triplets/x64-linux-static-debug.cmake diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 4198ee7..81f028d 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -17,7 +17,7 @@ jobs: matrix: config: - { os: windows-latest, preset: windows-x64-release, vcpkg-dir: 'C:/lukka-vcpkg' } - - { os: ubuntu-20.04, preset: linux-x64-release, vcpkg-dir: '/tmp/lukka-vcpkg' } + - { os: ubuntu-20.04, preset: linux-x64-debug, vcpkg-dir: '/tmp/lukka-vcpkg' } - { os: macos-latest, preset: macos-x64-release, vcpkg-dir: '/tmp/lukka-vcpkg' } runs-on: ${{ matrix.config.os }} continue-on-error: true diff --git a/triplets/x64-linux-static-debug.cmake b/triplets/x64-linux-static-debug.cmake new file mode 100644 index 0000000..fbf8b2f --- /dev/null +++ b/triplets/x64-linux-static-debug.cmake @@ -0,0 +1,6 @@ +set(VCPKG_TARGET_ARCHITECTURE x64) +set(VCPKG_CRT_LINKAGE dynamic) +set(VCPKG_LIBRARY_LINKAGE static) +set(VCPKG_BUILD_TYPE debug) + +set(VCPKG_CMAKE_SYSTEM_NAME Linux) \ No newline at end of file