Skip to content

Commit

Permalink
GHA: Switch to clang-format for format check
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Lichtenheld <[email protected]>
  • Loading branch information
flichtenheld committed Jan 15, 2025
1 parent c9b4d58 commit d35e380
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 235 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,16 @@ name: Build
on: [push, pull_request]

jobs:
checkuncrustify:
name: "Check code style with Uncrustify"
# Ubuntu 22.04 has uncrustify 0.72_f
runs-on: ubuntu-22.04
checkformat:
name: "Check code style with clang-format"
runs-on: ubuntu-24.04
steps:
- name: Install dependencies
run: sudo apt update && sudo apt install -y uncrustify
- name: Install pre-commit
run: pip3 install pre-commit
- name: Checkout OpenVPN-GUI
uses: actions/checkout@v3
- name: Show uncrustify version
run: uncrustify --version
- name: Run uncrustify
run: ./dev-tools/reformat-all.sh
- name: Check for changes
run: git diff --output=uncrustify-changes.patch
- name: Show changes on standard output
run: git diff
- uses: actions/upload-artifact@v3
with:
name: uncrustify-changes.patch
path: uncrustify-changes.patch
- name: Set job status
run: test ! -s uncrustify-changes.patch
- name: Run pre-commit
uses: pre-commit run -a

msvc:
strategy:
Expand Down
136 changes: 0 additions & 136 deletions dev-tools/reformat-all.sh

This file was deleted.

Empty file removed dev-tools/special-files.lst
Empty file.
79 changes: 0 additions & 79 deletions dev-tools/uncrustify.conf

This file was deleted.

0 comments on commit d35e380

Please sign in to comment.