Skip to content

ashutoshvarma/action-cmake-build

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Main workflow

action-cmake-build

Build & Test CMake Projects with GitHub workflows.

Quickstart

This acion does not manage dependencies for you, all the dependencies for your project should be resolved before using this action.

   - name: Build & Test
        uses: ashutoshvarma/action-cmake-build@master
        with:
          build-dir: ${{ runner.workspace }}/build
          # will set the CC & CXX for cmake
          cc: gcc
          cxx: g++
          build-type: Release
          # Extra options pass to cmake while configuring project
          configure-options: -DCMAKE_C_FLAGS=-w32 -DPNG_INCLUDE=OFF
          run-test: true
          ctest-options: -R mytest
          # install the build using cmake --install
          install-build: true
          # run build using '-j [parallel]' to use multiple threads to build
          parallel: 14

Action Reference: All Input/Output & Defaults

action.yml

License

All the content in this repository is licensed under the MIT License.

Copyright (c) 2019-2020 Ashutosh Varma

About

Github action for cmake based projects

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •