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.
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
.
- Description: Options to generate a project buildsystem other than
build-options
- Description: Options to build a project other than
--build
.
- Description: Options to build a project other than
test-options
- Description: Options to test a project.
install
- Description: Set to
true
to install the project. Requires CMake 3.15.
- Description: Set to
install-options
- Description: Options to install a project other than
--install
.
- Description: Options to install a project other than
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"