Skip to content

Conversation

@inge4pres
Copy link
Contributor

@inge4pres inge4pres commented Oct 8, 2025

Reason for this PR

Relates to:

Details

  • add build.zig and build.zig.zon
  • add a zig.yml workflow to build on Github actions

Additional context

The build scripts is derived from what CMake does; it compiles a static library and an executable that links to it for testing.

The Github workflow simply ensure compilation via build.zig succeeds and runs the executable on 4 Linux targets.

Further work

build.zig could also be extended to include a test step that runs the c++ tests in the test folder.

Add the necessary files to build a static library with Zig.
The build also includes producing execuable that can be cross-compiled

Signed-off-by: inge4pres <fgualazzi@gmail.com>
Signed-off-by: inge4pres <fgualazzi@gmail.com>
@inge4pres inge4pres marked this pull request as ready for review October 9, 2025 20:37
Copy link
Collaborator

@gchatelet gchatelet left a comment

Choose a reason for hiding this comment

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

@Mizux can you have a look as well?

@inge4pres inge4pres requested a review from Mizux October 13, 2025 14:41
Copy link
Collaborator

@Mizux Mizux left a comment

Choose a reason for hiding this comment

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

LGTM

@Mizux Mizux added enhancement New feature or request zig labels Oct 13, 2025
@Mizux Mizux added this to the v0.11 milestone Oct 13, 2025
Signed-off-by: inge4pres <fgualazzi@gmail.com>
Copy link
Collaborator

@Mizux Mizux left a comment

Choose a reason for hiding this comment

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

LGTM
note: Macos ci failure were flacky (and fixed by d868036)

@gchatelet gchatelet merged commit 2182eb5 into google:main Oct 14, 2025
27 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request zig

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants