Skip to content
align-justify

GitHub Action

Modern CMake Buildsystem

v1.0.0 Latest version

Modern CMake Buildsystem

align-justify

Modern CMake Buildsystem

Builds, tests, and optionally installs a modern CMake project

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Modern CMake Buildsystem

uses: JohelEGP/[email protected]

Learn more about this action in JohelEGP/modern-cmake-buildsystem

Choose a version

Modern CMake Buildsystem

This action portably builds, tests, and optionally installs a modern CMake project.

It is based on these commands.

It has no required input arguments. It has no output arguments. It uses no secrets.

It doesn't directly use environment variables, though it may do so indirectly through the CMake commands.

Optional inputs arguments

  • path-to-source
    • Description: The top-level directory containing source files provided by the project.
    • Default: "${{ github.workspace }}"
  • path-to-build
    • Description: The top-level directory in which buildsystem files and build output artifacts are to be stored.
    • Default: "${{ github.workspace }}/build"
  • generate-options
    • Description: Options to generate a project buildsystem other than -S and -B.
  • build-options
    • Description: Options to build a project other than --build.
  • test-options
    • Description: Options to test a project.
  • install
    • Description: Set to true to install the project. Requires CMake 3.15.
  • install-options
    • Description: Options to install a project other than --install.

Example

on: push
jobs:
  gcc-snapshot:
    runs-on: ubuntu-latest
    steps:
      - uses: johelegp/gcc-snapshot@v1
      - uses: actions/checkout@v2
      - uses: johelegp/modern-cmake-buildsystem@v1 # This action.
        with:
          generate-options: "--preset=test"