Coder Social home page Coder Social logo

lukka / cppbuildtasks-validation Goto Github PK

View Code? Open in Web Editor NEW
18.0 6.0 16.0 177 KB

Validation tests for CppBuildTasks Azure DevOps tasks and for run-cmake and run-vcpkg GitHub actions.

CMake 88.15% C++ 11.85%
vcpkg cmake azure-devops ninja continuous-integration

cppbuildtasks-validation's Introduction

Hi there, I am Luca ๐Ÿ‘‹

โšก GitHub Stats

n3wt0n's GitHub Stats

cppbuildtasks-validation's People

Contributors

ihnorton avatar lukka avatar neroburner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cppbuildtasks-validation's Issues

cmake can't find ninja

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

help troubleshooting trying to figure out how to apply your hosted-basic-submod-vcpkg example yml to a wxWidgets example project

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.

not found specified version library

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) ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.