8000 GitHub - tkk2112/cmake-builder: A reusable workflow for building using CMakePresets
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tkk2112/cmake-builder

Repository files navigation

CMake Builder 0.2.0

A reusable GitHub workflow for building CMake-based projects with using presets.

Usage

To use this workflow in your project, add a workflow file like this:

name: Build

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  build:
    uses: tkk2112/cmake-builder/.github/workflows/cmake-builder.yml@0.2.0
    with:
      runs-on: ubuntu-latest
      toolchain: gcc
      presets: |
        {
          "debug": { "artifact" : { "path" : [ "build/tests", "!build/tests/broken_tests" ] }},
          "release": {},
          "macos": { "runs-on": "macos-latest" }
        }

Inputs

  • runs-on: Default runner to use (default: "ubuntu-latest")
  • toolchain: Default toolchain to use (default: "gcc")
  • store_artifact: Should artifacts be stored (default: false)
  • artifact_retention_days: Number of days to store artifacts (default: 5)
  • cmake_project_root: CMakePresets.json directory (default: .)
  • presets: JSON configuration of build presets (required)

presets schema

License

MIT

About

A reusable workflow for building using CMakePresets

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
0