Skip to content

Commit

Permalink
Add cuh file extension and replace use of set-output
Browse files Browse the repository at this point in the history
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
  • Loading branch information
swahtz authored Dec 17, 2024
1 parent 2da038f commit 3201d87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand All @@ -85,6 +85,6 @@ do
fail "$header" "$guard"
done

echo "::set-output name=fails::$failed"
echo "fails=$failed" >> $GITHUB_OUTPUT

exit $ret

0 comments on commit 3201d87

Please sign in to comment.