Repository navigation
ci: enforce C17, Rust lint gates, and workflow hardening - #108
Merged
Merged
Conversation
Build and run a minimal pure-C consumer with C17 warnings as errors through CMake and CTest, and expose a check-c17 target for platform CI. Update the check target to lint all Rust targets with warnings denied. Add read-only workflow permissions and PR concurrency while preserving the main coverage baseline, and add Dependabot for GitHub Actions.
Intel macOS is no longer a supported target, so do not launch macos-15-intel from this PR workflow.
Keep the strict C17 header check available when a platform CI job enables only the standalone consumer test, so native Windows CI can run it without the Catch2 suite.
Give each push its own concurrency group so pending main runs are not replaced; PRs keep per-ref cancellation. Use the MSVC import-library name, put the Rust target directory on the Windows test PATH, and invoke the named C17 test through CTest with multi-config selection and --no-tests=error.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
include/lancedb.hand build it as strict C17. GCC/Clang use-std=c17 -Wall -Wextra -Werror -pedantic; MSVC uses/std:c17plus/W4 /WX.check-c17target.check-c17calls CTest with--no-tests=error, keeps the coverage environment, and selects the configuration for multi-config generators.lancedb.dll.libimport library and put the Rust target directory on the test PATH, without adding a second DLL staging step.cargo fmt --checkandcargo clippy --all-targets -- -D warnings.contents: readtoci.yml, use PR-only cancellation, and give each push its own concurrency group so pending main runs are not replaced.coverage.ymllikewise isolates push runs, keepsactions: readfor the main baseline artifact flow, and preserves the exact merge-base lookup and threshold..github/dependabot.ymlfor GitHub Actions versions.macos-15-intelpackage matrix entry because Intel macOS is no longer supported. The standalone packaging/CI change will carry the rest of that workflow delta.No public header or Rust ABI changes are included.
Validation
cargo fmt --checkcargo clippy --all-targets -- -D warningscargo build, then compiled and rantests/c17_consumer.cwith both GCC and Clang using-std=c17 -Wall -Wextra -Werror -pedantic:C17 consumer: OK.ctest -R '^lancedb_c17_consumer$' --no-tests=errorpassed.BUILD_TESTS=ON,BUILD_CONSUMER_TEST=ON, and Ninja Multi-Config; verified the compile flags, CTest command,-Cselection, and failing status propagation.lancedb.dll.libimport path,path_list_prependtest environment, and the Windows C17 target.Full GitHub Actions results will be reported on the PR.
Closes #96