Skip to content

Commit

Permalink
Check formatting on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kimci86 committed Feb 6, 2024
1 parent 2e9955f commit 6b9218b
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,27 @@ jobs:
build/*.zip
build/*.tar.gz
format:
name: Formatting
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Configure project
run: cmake -S . -B build -DBKCRACK_CLANG_FORMAT_EXECUTABLE=/usr/bin/clang-format-15

- name: Format C++ code
run: cmake --build build --target format

- name: Check for difference
run: git diff --exit-code

release:
name: Release
runs-on: ubuntu-latest
needs: build
needs: [build, format]
if: startsWith(github.ref, 'refs/tags/')

steps:
Expand Down

0 comments on commit 6b9218b

Please sign in to comment.