โก GitHub Stats
lukka / cppbuildtasks-validation Goto Github PK
View Code? Open in Web Editor NEWValidation tests for CppBuildTasks Azure DevOps tasks and for run-cmake and run-vcpkg GitHub actions.
Validation tests for CppBuildTasks Azure DevOps tasks and for run-cmake and run-vcpkg GitHub actions.
Hey! I'm trying to follow your pure workflow but I'm getting a strange error around cmake & ninja:
https://github.com/MisterTea/EternalTerminal/runs/1890901575?check_suite_focus=true
"CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool."
The only significant difference is that my CMakeLists.txt is in the root folder of the repo so I had to make some minor changes to the workflow file to support it: https://github.com/MisterTea/EternalTerminal/pull/393/files
Please let me know if I can provide any extra data to help
In https://vcpkg.readthedocs.io/en/latest/examples/modify-baseline-to-pin-old-boost/ a method explains how to use older libraries version modifing baselin file. It seems that it is not working with run-vcpkg because there is no vcpkg.json file.
Is there a way to do it ?
I am trying to wrap my head around your hosted-basic-cache-submod system. And so for practice I forked an example wxWidgets project (https://github.com/gammasoft71/Examples_wxWidgets) and copied your hosted-basic-cache-submod_vcpkg.yml
and made appropriate modifications. You can see the diff here: gammasoft71/Examples_wxWidgets@master...ericfont:hosted-basic-submod-vcpkg (and instead of printing sqlite version as a test I have cmakeliststxt/print-version.cpp which prints the wxwidgets version).
However when I run the action, I get and error on the ubuntu-latest run:
https://github.com/ericfont/Examples_wxWidgets/runs/3775207527?check_suite_focus=true#step:6:452
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: /home/runner/work/Examples_wxWidgets/Examples_wxWidgets/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/bin/cmake /home/runner/work/Examples_wxWidgets/Examples_wxWidgets/vcpkg/buildtrees/wxwidgets/src/54f4f955a1-0d7c66a59e.clean -DwxUSE_REGEX=builtin -DwxUSE_ZLIB=sys -DwxUSE_EXPAT=sys -DwxUSE_LIBJPEG=sys -DwxUSE_LIBPNG=sys -DwxUSE_LIBTIFF=sys -DwxBUILD_DISABLE_PLATFORM_LIB_DIR=ON -DwxUSE_STL=OFF -DCMAKE_MAKE_PROGRAM=/home/runner/work/Examples_wxWidgets/Examples_wxWidgets/vcpkg/downloads/tools/ninja-1.10.2-linux/ninja -DCMAKE_SYSTEM_NAME=Linux -DBUILD_SHARED_LIBS=OFF -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/home/runner/work/Examples_wxWidgets/Examples_wxWidgets/vcpkg/scripts/toolchains/linux.cmake -DVCPKG_TARGET_TRIPLET=x64-linux -DVCPKG_SET_CHARSET_FLAG=ON -DVCPKG_PLATFORM_TOOLSET=external -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE -DCMAKE_VERBOSE_MAKEFILE=ON -DVCPKG_APPLOCAL_DEPS=OFF -DCMAKE_TOOLCHAIN_FILE=/home/runner/work/Examples_wxWidgets/Examples_wxWidgets/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON -DVCPKG_CXX_FLAGS= -DVCPKG_CXX_FLAGS_RELEASE= -DVCPKG_CXX_FLAGS_DEBUG= -DVCPKG_C_FLAGS= -DVCPKG_C_FLAGS_RELEASE= -DVCPKG_C_FLAGS_DEBUG= -DVCPKG_CRT_LINKAGE=dynamic -DVCPKG_LINKER_FLAGS= -DVCPKG_LINKER_FLAGS_RELEASE= -DVCPKG_LINKER_FLAGS_DEBUG= -DVCPKG_TARGET_ARCHITECTURE=x64 -DCMAKE_INSTALL_LIBDIR:STRING=lib -DCMAKE_INSTALL_BINDIR:STRING=bin -D_VCPKG_ROOT_DIR=/home/runner/work/Examples_wxWidgets/Examples_wxWidgets/vcpkg -D_VCPKG_INSTALLED_DIR=/home/runner/work/Examples_wxWidgets/Examples_wxWidgets/vcpkg/installed -DVCPKG_MANIFEST_INSTALL=OFF -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/runner/work/Examples_wxWidgets/Examples_wxWidgets/vcpkg/packages/wxwidgets_x64-linux/debug
Working Directory: /home/runner/work/Examples_wxWidgets/Examples_wxWidgets/vcpkg/buildtrees/wxwidgets/x64-linux-dbg
Error code: 1
See logs for more information:
/home/runner/work/Examples_wxWidgets/Examples_wxWidgets/vcpkg/buildtrees/wxwidgets/config-x64-linux-dbg-out.log
/home/runner/work/Examples_wxWidgets/Examples_wxWidgets/vcpkg/buildtrees/wxwidgets/config-x64-linux-dbg-err.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:381 (vcpkg_execute_required_process)
ports/wxwidgets/portfile.cmake:33 (vcpkg_configure_cmake)
scripts/ports.cmake:141 (include)
Error: Building package wxwidgets:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `./vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: wxwidgets:x64-linux
Vcpkg version: 2021-09-10-unknownhash
Additionally, attach any relevant sections from the log files above.
Error: Last command execution failed with error code '1'.
โฑ elapsed: 65.846 seconds
Error: Last command execution failed with error code '1'.
at BaseUtilLib.throwIfErrorCode (/home/runner/work/_actions/lukka/run-vcpkg/main/dist/index.js:4920:19)
at VcpkgRunner.<anonymous> (/home/runner/work/_actions/lukka/run-vcpkg/main/dist/index.js:5702:28)
at Generator.next (<anonymous>)
at fulfilled (/home/runner/work/_actions/lukka/run-vcpkg/main/dist/index.js:5511:58)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
Error: run-vcpkg action execution failed: Error: Last command execution failed with error code '1'.
any assistance or tips would be appreciated.
Hello, I use run-vcpkg for test my gayrpc. But when generate cmake, It not found specified library.
Please see this workflow:
https://github.com/IronsDu/gayrpc/runs/7740655991?check_suite_focus=true
Error: No version entry for brynet at version 1.12.1. This may be fixed by updating vcpkg to the latest master via `git pull`.
Available versions:
1.11.2
1.11.1#1
1.11.0#1
1.11.0
1.10.0
1.0.7
1.0.5
1.0.3
1.0.2
1.0.0-1
1.0.0
0.9.0
But, the latest brynet version in vcpkg is 1.12.1 : https://github.com/microsoft/vcpkg/blob/master/ports/brynet/vcpkg.json .
Whether you need update your vcokg submodule in [CppBuildTasks-Validation](https://github.com/lukka/CppBuildTasks-Validation)
?
How can I use a custom triplet in this action?
I am using this workflow file as base: https://github.com/lukka/CppBuildTasks-Validation/blob/v10/.github/workflows/hosted-ninja-vcpkg_submod.yml
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.