Skip to content

ci: add gcc/clang matrix with -Werror#353

Draft
abhinavagarwal07 wants to merge 1 commit into
libfuse:masterfrom
abhinavagarwal07:ci-werror-clang
Draft

ci: add gcc/clang matrix with -Werror#353
abhinavagarwal07 wants to merge 1 commit into
libfuse:masterfrom
abhinavagarwal07:ci-werror-clang

Conversation

@abhinavagarwal07
Copy link
Copy Markdown
Collaborator

Expand the build job into a gcc/clang matrix with fail-fast: false so both compilers always report results. Pass -Dwerror=true to meson so any compiler warning is a build failure.

Includes all hygiene from the foundation PR: SHA-pinned Node 24-capable actions, least-privilege permissions, concurrency cancellation, pinned runner (ubuntu-24.04) and Python (3.12), explicit SSH setup with sshd start, hard-fail FUSE preflight, pytest timeouts/maxfail/JUnit XML, and per-compiler test result artifacts.

GCC and clang produce different warnings and catch different classes of issues. Running both with -Werror gives broader warning coverage than either compiler alone. Once merged, both rows should be required PR checks.

- Expand build job into gcc/clang matrix with fail-fast: false
- Pass -Dwerror=true so compiler warnings fail the build
- Pin all actions to Node 24-capable full SHAs (checkout v6.0.2, setup-python v6.2.0, upload-artifact v7.0.1)
- Add least-privilege permissions, concurrency cancellation
- Pin python-version to 3.12, pin runner to ubuntu-24.04
- Add explicit SSH setup with sshd start, hard-fail FUSE preflight
- Add pytest --timeout=300, --maxfail=99, JUnit XML, test result artifacts per compiler
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