Skip to content

Debug

Debug #398

Workflow file for this run

# SPDX-FileCopyrightText: 2024 Baptiste Legouix
# SPDX-License-Identifier: GPL-3.0-or-later
name: test
on:
push: { branches: [ main ] }
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref == github.ref_protected && github.run_id || github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DoozyX/[email protected]
with:
source: 'examples/ include/similie/ tests/'
exclude: ''
extensions: 'hpp,cpp'
clangFormatVersion: 18
- name: Prefer 'if defined' over 'ifdef'
run: if grep -R "ifdef" examples/ include/similie/ tests/; then exit 1; fi
- name: Find modifications of Kokkos reserved macros
run: if grep -RE "(define|undef) KOKKOS_" examples/ include/similie/ tests/; then exit 1; fi
- name: REUSE Compliance Check
if: always()
uses: fsfe/reuse-action@v4