Skip to content

Add local and GH action to test building C sources#33

Merged
ptim0626 merged 16 commits into
devfrom
build-tests-c
Sep 13, 2025
Merged

Add local and GH action to test building C sources#33
ptim0626 merged 16 commits into
devfrom
build-tests-c

Conversation

@ptim0626
Copy link
Copy Markdown
Collaborator

This PR adds a bash script to test different mechanisms of building the mib2h5 binary (without compression). There are 3 ways to specify the path of HDF5:

  1. use system installation
  2. use environment variables
  3. by explicitly providing --with-hdf5=/path/to/hdf5

The bash script tries to wrap the above mechanisms and provides summary of the test results, the usage can be seen by test_build_c.sh --list.

A GitHub Action is also added to use the above script to test whether building the C sources by Autotools. The action tests gcc version from 7 to 14, the above 3 building mechanism using gcc 11, all using the latest HDF5 1.14.x.

@ptim0626 ptim0626 merged commit 917f10b into dev Sep 13, 2025
15 checks passed
@ptim0626 ptim0626 deleted the build-tests-c branch September 27, 2025 12:14
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