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 20, 2025
1 parent 48581fe commit 1645484
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 229 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,26 @@ 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Show uncrustify version
run: uncrustify --version
- name: Run uncrustify
run: ./dev-tools/reformat-all.sh
- name: Run pre-commit
run: pre-commit run -a || true
- name: Check for changes
run: git diff --output=uncrustify-changes.patch
run: git diff --output=cf-changes.patch
- name: Show changes on standard output
run: git diff
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: uncrustify-changes.patch
path: uncrustify-changes.patch
name: cf-changes.patch
path: cf-changes.patch
- name: Set job status
run: test ! -s uncrustify-changes.patch
run: test ! -s cf-changes.patch

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 1645484

Please sign in to comment.