Skip to content

[ci]: add testing pipelines to github actions #2

[ci]: add testing pipelines to github actions

[ci]: add testing pipelines to github actions #2

Workflow file for this run

name: Reusable CMake
on:
workflow_call:
inputs:
cmake_generator:
required: false
type: string
default: 'Unix Makefiles'
cmake_build_type:
required: true
type: string
default: ''
cmake_cxx_compiler:
required: false
type: string
gsl_cxx_standard:
required: true
type: number
extra_cmake_args:
required: false
type: string
default: ''
cmake_configure_only:
required: false
type: boolean
default: false
jobs:

Check failure on line 29 in .github/workflows/reusable-cmake.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/reusable-cmake.yml

Invalid workflow file

You have an error in your yaml syntax on line 29
-uses: actions/checkout@v4
- name: Create build directory
run: mkdir build
- name: Configure CMake
working-directory: build
run: cmake \
-G "${{inputs.cmake_generator}}" \
-DCMAKE_BUILD_TYPE=${{inputs.cmake_build_type}} \
-DCMAKE_CXX_COMPILER=${{inputs.cmake_cxx_compiler}} \
-DGSL_CXX_STANDARD=${{inputs.gsl_cxx_standard}} \
-DCI_TESTING:BOOL=ON \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-Werror=dev \
${{inputs.extra_cmake_args}} \
..
- name: Build
if: "!${{inputs.cmake_configure_only}}"
working-directory: build
run: make
- name: Test
if: "!${{inputs.cmake_configure_only}}"
working-directory: build
run: make test