Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Consolidate stdexec cpu and gpu code into one application #63

Consolidate stdexec cpu and gpu code into one application

Consolidate stdexec cpu and gpu code into one application #63

Workflow file for this run

name: Format Check
on:
pull_request:
paths:
- '**.cpp'
- '**.h'
- 'CMakeLists.txt'
- '**.cmake'
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install clang-format
run: sudo apt-get install clang-format
- name: Install cmake-format
run: pip install cmake-format
- name: Check C++ format
run: |
clang-format --version
find . -name '*.cpp' -o -name '*.h' -o -name '*.hpp' -o -name '*.cc' | xargs clang-format -i
git diff --exit-code || (echo "Code was not formatted using clang-format! Please format your code." && exit 1)
- name: Check CMake format
run: |
find . -name 'CMakeLists.txt' -o -name '*.cmake' | xargs cmake-format -i
git diff --exit-code || (echo "CMake files were not formatted using cmake-format! Please format your files." && exit 1)