deprecate KOKKOS_CUSPARSE_SAFE_CALL -> KOKKOSPARSE_IMPL_CUSPARSE_SAFE_CALL #3481
Workflow file for this run
This file contains 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
name: github-FORMAT | |
on: | |
pull_request: | |
branches: | |
- master | |
- develop | |
permissions: | |
contents: none | |
jobs: | |
clang-format-check: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install Dependencies | |
run: sudo apt install clang-format-16 | |
- name: check | |
run: | | |
# Fetch from the default remote (origin) | |
git fetch &> /dev/null | |
# For every file changed, apply clang-format | |
for file in $(git diff --name-only origin/$GITHUB_BASE_REF | egrep '.*\.cpp$|.*\.hpp$|.*\.h$'); do | |
if [ -e $file ]; then | |
clang-format-16 -i -style=file $file | |
git add $file | |
fi | |
done | |
# If any diffs exist, print the patch and error out | |
if [[ ! -z $(git status -s -uno . -- ':!.github') ]]; then | |
echo "The following files require formatting changes:" | |
git status -s -uno . -- ':!.github' | |
echo "==== Begin Format Patch ====" | |
# --cached means show staged changes (git add above) | |
git --no-pager diff --patch --cached | |
echo "==== End Format Patch ====" | |
echo "To automate formatting, see:" | |
echo " https://kokkos-kernels.readthedocs.io/en/latest/developer/style.html#id1" | |
exit 1 | |
fi |