Skip to content

Add GitHub Actions CI - #1

Merged
hwawshy merged 5 commits into
masterfrom
ci-workflow
Aug 3, 2026
Merged

hwawshy merged 5 commits into
masterfrom
ci-workflow

Conversation

@hwawshy

@hwawshy hwawshy commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a CI workflow (.github/workflows/ci.yml) that builds the project on commits to the default branch and PRs against it.

  • check job (fail-fast): cargo fmt --check and cargo metadata --no-deps on ubuntu-latest using the preinstalled latest-stable Rust.
  • build job (needs: check): matrix over PHP versions (currently 8.5; add 8.6 once stable), provisioning a ZTS PHP 8.5 with the embed SAPI via shivammathur/setup-php (phpts: zts), installing libclang-dev (bindgen), symlinking libphp8.5.so to libphp.so (build.rs links dylib=php), then cargo clippy --all-targets -- -D warnings and cargo build --release --bin ferrumphp.
  • Cargo deps (registry/git/target) cached via actions/cache, keyed on hashFiles('Cargo.lock') (exact hit when the lockfile is unchanged) with restore-keys fallback.
  • Concurrency group cancels superseded runs.

Additional changes

  • fix formatting: cargo fmt cleanups in src/ (the cargo fmt --check job requires a formatted tree).
  • add AGENTS.md: agent instructions for building/working on this repo (from a prior session; kept in this PR for review).

@hwawshy
hwawshy merged commit 55d3bb0 into master Aug 3, 2026
2 checks passed
@hwawshy
hwawshy deleted the ci-workflow branch August 3, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant