Getting Started & Architecture
Install FastCi, pick the right acceleration tier for your repository, and see why a single native C11 + Assembly binary cuts build latency across Linux, macOS, and Windows.
FastCi is in active development (current release v0.3.0). CLI flags, manifest keys, and cache formats may still evolve before v1.0.0. Evaluate in staging or non-critical CI workflows before production rollouts.
1. Choose Your Acceleration Tier
FastCi scales smoothly without forcing you to rewrite your existing build system:
| Tier | Integration Effort | What You Get |
|---|---|---|
| Tier 1: Drop-in Compiler & Link Cache | 2 lines in GitHub Actions or CMake/Cargo | Direct-mode C/C++/ASM/Rust/Zig/Swift caching + link caching with CMAKE_*_LAUNCHER or RUSTC_WRAPPER. |
| Tier 2: DAG Pipeline Runner | One fastci.json file |
Critical-path parallel scheduler, memory-aware slot reservation, incremental CAS per job, matrix expansion, Chrome trace profiling. |
| Tier 3: Shared Remote CAS & Distributed Pool | Self-hosted remote-serve / dist-serve |
Team-wide HTTP/1.1 keep-alive CAS sharing + sandboxed distributed compilation workers (bwrap + RLIMIT). |
2. Install FastCi
Release installers verify checksums automatically against SHA256SUMS:
curl -fsSL https://raw.githubusercontent.com/seregonwar/FastCi/main/scripts/install.sh | sh
# Linux memory-safe Fil-C bundle:
curl -fsSL https://raw.githubusercontent.com/seregonwar/FastCi/main/scripts/install.sh | sh -s -- --variant filc
irm https://raw.githubusercontent.com/seregonwar/FastCi/main/scripts/install.ps1 | iex
Verify the installation and inspect detected CPU SIMD features (AVX2 / SSE4.2 / NEON / Fil-C runtime):
fastci version
fastci doctor
3. GitHub Actions Drop-In (2 Minutes)
The composite action seregonwar/FastCi@v0.3.0 downloads the verified platform binary, persists the CAS via actions/cache@v4, wires compiler/linker launchers, and sets read-only remote cache protection on pull requests:
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: seregonwar/FastCi@v0.3.0
with:
enable-cmake-launcher: true
verify-inputs: sample
cache-key-prefix: fastci-v1
- name: Configure
run: >
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
-DCMAKE_C_FLAGS_RELEASE="${{ runner.os == 'Windows' && '/O2 /Z7' || '-O2' }}"
- name: Build
run: cmake --build build --parallel
- name: Cache report
if: always()
run: fastci stats
/Z7 instead of /Zi on Windows?MSVC's /Zi writes to a shared vc140.pdb through mspdbsrv.exe, which forces every compiler cache to bypass caching. Switching to /Z7 embeds debug info inside each .obj and unlocks 100% cache hit rates on Windows runners.
4. Your First fastci.json Pipeline
Generate a starter manifest with fastci init, validate it, inspect the critical-path execution order, and execute with Chrome trace profiling:
fastci init
fastci validate -f fastci.json
fastci plan -f fastci.json
fastci run -f fastci.json --trace trace.json --report report.json
5. Why FastCi Is Fast Under the Hood
- Zero-dependency C11 + Assembly core: No JVM, Go runtime, or Node startup tax. Sub-millisecond process launch keeps wrapper overhead tiny across hundreds of compiler invocations.
- BLAKE3-256 + SaRCAsm SIMD kernels: AVX2, SSE4.2, and ARM64 NEON assembly routines accelerate hashing, globbing, and line/dependency scanning.
- Statcache v4 + Windows NTFS USN Journal: Unchanged files are skipped via
(mtime_ns, size, inode/file_index)and NTFS USN Journal tracking instead of re-hashing every input. - Direct-Mode Compiler Cache: Stores a manifest of resolved header paths and hashes per translation unit, skipping the preprocessor spawn entirely on warm hits.
- Streaming slibz CAS & Hardlink/Reflink Materialization: Artifacts are stored content-addressed in
.slzformat and restored with instant OS hardlinks/reflinks where supported. - Fil-C Memory-Safe Linux Option: First-class Fil-C target provides deterministic garbage-collected memory safety for C without changing the CLI or cache format.