Skip to content

artagon/artagon-workflow-test-cmake

Repository files navigation

Artagon Workflow Test - CMake C/C++

CI

Test repository for validating artagon-workflows CMake C and C++ CI reusable workflows.

Purpose

Validates that cmake_c_ci.yml and cmake_cpp_ci.yml reusable workflows:

  • Build CMake projects correctly for C and C++
  • Run tests and report results
  • Support different language standards (C11/17/23, C++17/20/23)
  • Handle custom CMake options
  • Generate code coverage
  • Work across Linux, macOS, Windows

Test Matrix

C Tests

Test Standard Custom Options
Default 17 -
C11 11 -
C17 17 -
C23 23 -
Custom 17 -DCMAKE_VERBOSE_MAKEFILE=ON

C++ Tests

Test Standard
Default 20
C++17 17
C++20 20
C++23 23

Project Structure

.
├── CMakeLists.txt          # C project configuration
├── src/
│   ├── main.c              # C main source
│   └── test.c              # C test source
├── cpp/                    # C++ project
│   ├── CMakeLists.txt
│   └── src/
│       ├── main.cpp
│       └── test.cpp
└── .github/workflows/
    └── ci.yml

Triggers

  • Push to main - Validates changes
  • Pull requests - Pre-merge validation
  • Daily schedule (2 AM UTC) - Catch upstream breaking changes
  • Manual dispatch - On-demand testing
  • Repository dispatch - Triggered by trigger_test_repos.yml

Running Locally

C Project

mkdir build && cd build
cmake ..
cmake --build .
ctest

C++ Project

cd cpp
mkdir build && cd build
cmake ..
cmake --build .
ctest

Related

About

Test repository for artagon-workflows CMake C/C++ CI workflow validation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors