From 1520491a73c4d19be725af51a7835bce983ee72c Mon Sep 17 00:00:00 2001 From: Jonathan Swartz <2375296+swahtz@users.noreply.github.com> Date: Mon, 19 Aug 2024 14:28:17 +1200 Subject: [PATCH 1/2] Added .cuh header extension to find regex --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index cdc51e5..d256188 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -70,7 +70,7 @@ fail () { ret=1 } -for header in $(find . -regex '.\+\.\(h\|H\|hh\|hpp\|hxx\)' | +for header in $(find . -regex '.\+\.\(h\|H\|hh\|hpp\|hxx\|cuh\)' | sed -e 's/^\.\///' | grep -e "$INPUT_ONLY" | grep -v -e '^.git/' ${INPUT_IGNORE:+-e} ${INPUT_IGNORE:+"$INPUT_IGNORE"}) @@ -85,6 +85,6 @@ do fail "$header" "$guard" done -echo "::set-output name=fails::$failed" +echo "fails=$failed" >> $GITHUB_OUTPUT exit $ret From d0d9743e7cf8ab57ec7a50858f30eb3d388fe8fb Mon Sep 17 00:00:00 2001 From: Jonathan Swartz <2375296+swahtz@users.noreply.github.com> Date: Tue, 17 Dec 2024 18:18:29 +1300 Subject: [PATCH 2/2] '.cuh' added in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bebc9e2..faf1541 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ This is a [GitHub Action](//help.github.com/en/actions) to check for `#include` guards in C/C++ header files. -We consider files with extensions `.h`, `.H`, `.hh`, `.hpp`, and `.hxx` +We consider files with extensions `.h`, `.H`, `.hh`, `.hpp`, `.cuh` and `.hxx` as header files. In these files we check for the existence of constructs like ```c