Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
BasedOnStyle: Google
BraceWrapping:
AfterFunction: true
BreakBeforeBraces: Custom
ColumnLimit: '120'
IndentPPDirectives: None
IndentWidth: '2'
MaxEmptyLinesToKeep: '1'
SpacesInParentheses: 'false'
TabWidth: '8'
UseTab: Never

...
1 change: 1 addition & 0 deletions .github/workflows/build-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ concurrency:

jobs:
build:
if: "!contains(toJSON(github.event.pull_request.body), '[skip build]')"
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/check-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: clang-format Check
on: [push, pull_request]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
steps:
#this is needed to get sha of central repo
- name: test_Files
uses: actions/checkout@v3
with:
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
- name: Run clang-format style check for C/C++ files.
uses: DanielWielanek/clang-format-action@main
with:
clang-format-version: '13'
check-path: '.'
upstream-branch: upstream/main
upstream-path: https://github.com/star-bnl/star-sw.git
Loading