make openmp scheduler dynamic #380
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: clang-format Check | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
format-code: | |
name: Formatting Code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: ./.github/actions/install-dependencies | |
- name: Install clang-format | |
run: | | |
sudo apt update | |
sudo apt install clang-format-13 | |
- name: Formatting | |
run: | | |
mkdir -p build && cd build | |
cmake .. | |
make clangformat | |
- name: Quit if there are no changes else exit with error | |
run: | | |
if [[ -z $(git status -s) ]]; then | |
echo "No changes to the formatting." | |
exit 0 | |
fi && exit 1 |