Skip to content

Commit 61dcf44

Browse files
2 parents 7af224e + 20f0a1d commit 61dcf44

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/check_style.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Verify code formatting
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
verify-formatting:
8+
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
9+
runs-on: ubuntu-22.04
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
with:
14+
persist-credentials: false
15+
fetch-depth: 0
16+
- name: Checkout astyle
17+
uses: actions/checkout@v4
18+
with:
19+
repository: szepeviktor/astyle
20+
path: astyle
21+
ref: v3.4.12
22+
- name: Install astyle
23+
run: |
24+
cd astyle/build/gcc/
25+
make
26+
sudo make install
27+
astyle --version

0 commit comments

Comments
 (0)