This repository has been archived by the owner on Nov 21, 2022. It is now read-only.
forked from DoozyX/clang-format-lint-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add clang-format version parameter
- Loading branch information
Showing
9 changed files
with
19 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
ARG CLANG_VERSION=9.0.0 | ||
|
||
FROM doozy/clang-format:${CLANG_VERSION} as clang-format-bin | ||
FROM python:3-alpine | ||
|
||
COPY --from=clang-format-bin /usr/bin/clang-format /usr/bin/ | ||
COPY run-clang-format.py /run-clang-format.py | ||
COPY entrypoint.sh /entrypoint.sh | ||
COPY clang-format/ /clang-format/ | ||
|
||
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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,6 @@ | ||
#!/bin/sh -l | ||
|
||
cd "$GITHUB_WORKSPACE" | ||
|
||
ln -s /clang-format/clang-format${INPUT_CLANGFORMATVERSION} /usr/bin/clang-format | ||
/run-clang-format.py -r --exclude ${INPUT_EXCLUDE} --extensions ${INPUT_EXTENSIONS} ${INPUT_SOURCE} |