-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support for clang-format-13 using ubuntu impish
- Loading branch information
Showing
4 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ubuntu:hirsute | ||
FROM ubuntu:impish | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,15 +10,16 @@ You can define your own formatting rules in a `.clang-format` file at your repos | |
* `clang-format-10` (n.b. use v3.4.0 of this action to access it) | ||
* `clang-format-11` | ||
* `clang-format-12` | ||
* `clang-format-13` | ||
|
||
## Do you find this useful? | ||
|
||
You can sponsor me [here](https://github.com/sponsors/jidicula)! | ||
|
||
## Inputs | ||
* `clang-format-version` [optional]: The version of `clang-format` that you want to run on your codebase. | ||
* Default: `11` | ||
* Available versions: every version of `clang-format` available on [Ubuntu Hirsute](https://packages.ubuntu.com/search?keywords=clang-format&searchon=names&suite=hirsute§ion=all). | ||
* Default: `13` | ||
* Available versions: every version of `clang-format` available on [Ubuntu Impish](https://packages.ubuntu.com/search?keywords=clang-format&searchon=names&suite=impish§ion=all). | ||
* `check-path` [optional]: The path to the directory in the repo that should be checked for C/C++ formatting. | ||
* Default: `.` | ||
* For cleaner output (i.e. with no double-slashed paths), the final directory in this path should have no trailing slash, e.g. `src` and not `src/`. | ||
|
@@ -70,7 +71,7 @@ jobs: | |
- name: Run clang-format style check for C/C++ programs. | ||
uses: jidicula/[email protected] | ||
with: | ||
clang-format-version: '11' | ||
clang-format-version: '13' | ||
check-path: 'src' | ||
fallback-style: 'Mozilla' # optional | ||
``` | ||
|
@@ -95,7 +96,7 @@ jobs: | |
- name: Run clang-format style check for C/C++ programs. | ||
uses: jidicula/[email protected] | ||
with: | ||
clang-format-version: '11' | ||
clang-format-version: '13' | ||
check-path: ${{ matrix.path }} | ||
fallback-style: 'Mozilla' # optional | ||
``` | ||
|
@@ -122,7 +123,7 @@ jobs: | |
- name: Run clang-format style check for C/C++ programs. | ||
uses: jidicula/[email protected] | ||
with: | ||
clang-format-version: '11' | ||
clang-format-version: '13' | ||
check-path: ${{ matrix.path['check'] }} | ||
exclude-regex: ${{ matrix.path['exclude'] }} | ||
fallback-style: 'Mozilla' # optional | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters