Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-cpp-compatibility-check-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ jobs:
with:
os: "linux"
compiler: "g++"
cmake_location: "./.github/dummy-cpp-project/"
cmake-location: "./.github/dummy-cpp-project/"
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ All notable changes to this project will be documented in this file.
- README for Dummy C++ Project.
- Status logging in pre-commit action.

### Changed

- Naming convention of variables in actions.

### Fixed

- Typos in pre-commit action.
- Move dummy C++ project to .github.
- Fix libpcre caching issue.

## [0.2.0] - 2026-02-11

Expand Down
26 changes: 13 additions & 13 deletions cpp-compatibility-check/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@ inputs:
description: "Compiler to run the compatibility check."
required: false
default: "g++"
install_command:
install-command:
description: "Install command to run."
required: false
default: ""
build_type:
build-type:
description: "Build type of the project"
required: false
default: "Release"
cmake_location:
cmake-location:
description: "Where CMakeLists.txt is located."
required: false
default: "." # Defaults to find at root
additional_cmake_args:
additional-cmake-args:
description: "Additional CMake Arguments."
required: false
default: ""
run_tests:
run-tests:
description: "Whether to run tests or not."
required: false
default: "true"
Expand All @@ -74,23 +74,23 @@ runs:
fi

- name: Run install command
if: inputs.install_command != ''
if: inputs.install-command != ''
shell: bash
run: ${{ inputs.install_command }}
run: ${{ inputs.install-command }}

- name: Configure CMake
shell: bash
run: |
cmake -S ${{ inputs.cmake_location }} -B build \
cmake -S ${{ inputs.cmake-location }} -B build \
-DCMAKE_CXX_COMPILER=${{ inputs.compiler }} \
-DCMAKE_BUILD_TYPE=${{ inputs.build_type }} \
${{ inputs.additional_cmake_args }}
-DCMAKE_BUILD_TYPE=${{ inputs.build-type }} \
${{ inputs.additional-cmake-args }}

- name: Build
shell: bash
run: cmake --build build --config ${{ inputs.build_type }}
run: cmake --build build --config ${{ inputs.build-type }}

- name: Test
if: inputs.run_tests == 'true'
if: inputs.run-tests == 'true'
shell: bash
run: ctest --output-on-failure --test-dir build -C ${{ inputs.build_type }}
run: ctest --output-on-failure --test-dir build -C ${{ inputs.build-type }}
Loading