From 3201d87afd235674d99fa165766e8aa268f51e8b Mon Sep 17 00:00:00 2001 From: Jonathan Swartz <2375296+swahtz@users.noreply.github.com> Date: Tue, 17 Dec 2024 21:16:24 +1300 Subject: [PATCH] Add cuh file extension and replace use of set-output cuh is the extension for header files of CUDA-C/C++. set-output has been deprecated for a long time and it's replaced by the $GITHUB_OUTPUT file --- README.md | 2 +- entrypoint.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 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