Skip to content

Comments

modernize workflow with proper caching, tests, and cross-platform builds#100

Open
chetanyb wants to merge 7 commits intomasterfrom
ci-update
Open

modernize workflow with proper caching, tests, and cross-platform builds#100
chetanyb wants to merge 7 commits intomasterfrom
ci-update

Conversation

@chetanyb
Copy link
Contributor

@chetanyb chetanyb commented Feb 6, 2026

Summary

Modernize CI workflow to align with zeam patterns.

Changes

  • Proper caching instead of clearing cache every run
  • Add unit tests: core (29), extended (10), lifetime (4)
  • Cross-platform build verification (ubuntu/macos/windows)
  • Jobs depend on lint to avoid wasting resources

NOTE: the failures are addressed in #99

@chetanyb chetanyb requested a review from ch4r10t33r February 6, 2026 10:32

- name: Build library
run: zig build
- uses: actions/checkout@v4
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had removed caching, one of my earlier PRs broke the cross compatibility test but that wasn't caught by the CI due to caching.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you pls verify this with a couple of tests? I don't want to endup breaking cross language compatibility tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we had a manual cache key that only invalidated on Cargo.lock changes, not source code changes. removed it so rust-cache@v2 uses its built-in logic (hashes both lock file and toml files).

ran the full cross-language test suite locally, all pass:

  • 2^8: Rust↔Zig
  • 2^32: Rust↔Zig
  • Pre-generated keys

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.

2 participants