Builds a repository using CMake.
If you find a bug or make an improvement your pull requests are appreciated.
All of this is under the MIT License.
Create a new workflow file, e.g. ./github/workflows/build.yml:
# Build repository using CMake
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
uses: HorstBaerbel/action-cmake@1.1
# These are optional (defaults displayed)
with:
sourcedir: '.'
builddir: 'build'
cmakeoptions: ''
- sourcedir: Directory with top-level CMakeLists.txt. MUST be realtive to you repository, thus '.' means root of repository.
- builddir: Directory to run CMake build in, e.g. 'build'. MUST be relative to sourcedir, thus 'build' means 'sourcedir/build'.
- cmakeoptions: Pass an additional option string to cmake (will call "cmake cmakeoptions sourcedir").