askill
ci-cd-multi-platform-matrix

ci-cd-multi-platform-matrixSafety 75Repository

CI/CD matrix strategies for multi-platform and multi-language builds

606 stars
12.1k downloads
Updated 3/29/2026

Package Files

Loading files...
SKILL.md

CI/CD Multi-Platform Matrix

Matrix Strategy

Use strategy.matrix with include for specific OS/arch/language combinations. Always fail-fast: false.

Platform targets: Linux x86_64 + ARM64, macOS x86_64 + ARM64, Windows x86_64. ARM64 Linux uses cross crate.

Language Version Matrices

LanguageVersionsAction
RustMSRV, stable, nightlydtolnay/rust-toolchain
Python3.8-3.12actions/setup-python
Node.js18, 20, 22actions/setup-node
Ruby3.0-3.3ruby/setup-ruby
Java11, 17, 21actions/setup-java (temurin)
Go1.20-1.22actions/setup-go

Caching

  • Rust: Swatinem/rust-cache with cache-targets: true
  • Node: actions/setup-node with cache: 'npm'
  • Python: actions/cache on ~/.cache/pip
  • Docker: BuildKit GHA cache (cache-from: type=gha)

Split Workflows by Domain

Separate ci-rust.yaml, ci-python.yaml, ci-node.yaml, etc. with path filters on relevant directories. Each runs lint -> build -> test -> coverage.

CI Pipeline Standards

  • Workflows use task commands (never direct scripts): task setup, task lint:check, task build:all, task test:all
  • Always set BUILD_PROFILE=ci in GitHub Actions
  • Pre-commit hooks run in validate stage
  • Stages: Validate -> Build -> Test -> Deploy

Anti-Patterns

  • Cartesian product explosion (use include to select specific combos)
  • No artifact caching
  • Mixed domains in single workflow
  • Hardcoded versions instead of matrix variables
  • No cross-platform testing for FFI bindings
  • No fail-fast: false (one failure hides others)

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

58/100Analyzed 3/30/2026

Solid technical reference for CI/CD matrix strategies covering multiple languages and platforms. Good structure with tables and anti-patterns, but lacks actual workflow YAML examples or step-by-step setup instructions. Located in .codex internal folder which suggests internal-only usage, though the content is broadly applicable. Would benefit from concrete implementation examples to increase actionability.

75
72
58
45
50

Metadata

Licenseunknown
Version-
Updated3/29/2026
Publisherkreuzberg-dev

Tags

ci-cdgithubgithub-actionslintingtesting