build-test

Build and test CMake targets with gcc and clang compilers.

500|69|Updated May 1, 2017
One-click install
npx skills add https://github.com/stillwater-sc/universal --skill build-test-stillwater-sc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-test
Source: https://github.com/stillwater-sc/universal/tree/main/.claude/skills/build-test
Command: npx skills add https://github.com/stillwater-sc/universal --skill build-test-stillwater-sc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Build and test targets across gcc and clang to validate compatibility and catch regressions early.

Core Features & Use Cases

  • Dual-compiler builds with gcc and clang to verify cross-compiler compatibility.
  • Sequential build workflow with safety checks to prevent concurrent builds.
  • Use Case: When changing CMake targets, run this to ensure all compiled executables pass basic checks on both compilers.

Quick Start

Provide a target name to build and test it with both gcc and clang.

Frequently Asked Questions about build-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate CMake builds across gcc and clang for portability?

Dual-compiler testing validates CMake builds across gcc and clang by automating sequential build and test workflows in separate directories. This approach detects cross-compiler regressions and verifies portability before merging changes.

How does dual-compiler testing detect regressions in CMake targets?

Dual-compiler testing detects regressions by building and running checks for CMake targets with both gcc and clang. It sequentially validates compiled executables to ensure compatibility and catch issues introduced by code changes.

Do I need separate build directories to test CMake targets with gcc and clang?

Yes, you need separate build directories, specifically build_ci and build_ci_clang, to test CMake targets with gcc and clang. This separation prevents conflicts and allows accurate dual-compiler validation.

Can I run concurrent builds when validating changes across multiple compilers?

No, you cannot run concurrent builds when validating changes across multiple compilers. Safety rules are implemented to prevent concurrent builds, requiring a sequential workflow for per-target builds and tests.

When should I use dual-compiler builds for my CMake project?

You should use dual-compiler builds for your CMake project when changing CMake targets and needing to ensure all compiled executables pass basic checks on both gcc and clang. It is applicable to CI workflows and local development.