diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 9af024ccc..1e4233f21 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -140,7 +140,10 @@ jobs: # env: # VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" steps: - - uses: actions/checkout@v3 + - uses: actions/setup-node@v4 + with: + node-version: "12.x" + - uses: actions/checkout@v2 with: fetch-depth: 5 - name: install rust language @@ -182,7 +185,7 @@ jobs: export CFLAGS="${CFLAGS} -fPIC" export CXXFLAGS="${CXXFLAGS} -fPIC" mkdir -p build && cd build - cmake ../ -DBUILD_JNI=ON -DBUILD_SAMPLE=ON -DTESTS=ON -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake + cmake ../ -DBUILD_JNI=ON -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_SAMPLE=ON -DTESTS=ON -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake make -j4 - name: run test run: cd build && CTEST_OUTPUT_ON_FAILURE=TRUE make test diff --git a/CMakeLists.txt b/CMakeLists.txt index 60f5fea5c..232f48685 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,7 +50,7 @@ if ("${ARCHITECTURE}" MATCHES "aarch64") set(ARCH_NATIVE ON) endif () -set(VCPKG_BUILD_TYPE "Release") +set(VCPKG_BUILD_TYPE "DEBUG") if (NOT DEFINED CMAKE_TOOLCHAIN_FILE) find_package(Git REQUIRED) execute_process(COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive -- vcpkg WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})