-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from EmixamPP/chore/ci/minsize
chore(ci): minsize
- Loading branch information
Showing
56 changed files
with
2,196 additions
and
2,229 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
BasedOnStyle: Google | ||
ColumnLimit: 100 |
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,27 +1,19 @@ | ||
--- | ||
Checks: ' | ||
-clang-diagnostic-pragma-system-header-outside-header, | ||
readability*, | ||
-readability-identifier-length, | ||
-readability-braces-around-statements, | ||
-readability-magic-numbers, | ||
-readability-named-parameter, | ||
-readability-function-cognitive-complexity, | ||
-readability-use-anyofallof, | ||
-readability-convert-member-functions-to-static, | ||
-readability-else-after-return, | ||
bugprone*, | ||
-bugprone-easily-swappable-parameters, | ||
-bugprone-empty-catch, | ||
cppcoreguidelines*, | ||
-cppcoreguidelines-avoid-const-or-ref-data-members, | ||
-cppcoreguidelines-avoid-non-const-global-variables, | ||
-cppcoreguidelines-init-variables, | ||
-cppcoreguidelines-avoid-magic-numbers, | ||
-cppcoreguidelines-pro-type-vararg, | ||
-cppcoreguidelines-pro-type-const-cast, | ||
-cppcoreguidelines-pro-type-vararg, | ||
-cppcoreguidelines-pro-type-member-init, | ||
-cppcoreguidelines-avoid-const-or-ref-data-members, | ||
-cppcoreguidelines-pro-bounds-array-to-pointer-decay, | ||
-cppcoreguidelines-avoid-c-arrays, | ||
-cppcoreguidelines-pro-bounds-pointer-arithmetic, | ||
-cppcoreguidelines-non-private-member-variables-in-classes, | ||
-cppcoreguidelines-avoid-non-const-global-variables, | ||
-cppcoreguidelines-avoid-do-while | ||
performance*, | ||
-performance-avoid-endl, | ||
readability*, | ||
-readability-braces-around-statements, | ||
-readability-identifier-length, | ||
' | ||
WarningsAsErrors: '*' |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "clang-format" | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
clang-format: | ||
name: clang-format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y python3-setuptools python3-wheel ninja-build g++ pkg-config libgtk-3-dev | ||
python -m pip install meson | ||
- name: Cache lib dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: .github/workflows/deps/install_dir | ||
key: ${{ hashFiles('.github/workflows/deps/CMakeLists.txt') }} | ||
|
||
- name: Setup | ||
run: | | ||
meson setup build --prefer-static --pkg-config-path=$(find .github -name "pkgconfig") | ||
- name: Check | ||
run: | | ||
ninja clang-format -C build |
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
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Contributing to linux-enable-ir-emitter | ||
Thank you for considering contributing to our project! We appreciate your interest and effort in improving linux-enable-ir-emitter. Please follow the guidelines below to ensure a smooth contribution process. | ||
|
||
## Reporting Issues | ||
Before opening a new issue, please check the [docs](docs/README.md) first in order to either find answer to your question or to use the right template. | ||
|
||
## Contributing Code | ||
To be sure that the modifications you made to the code will pass the CI during the PR, please perform the following steps: | ||
1. Compile locally the dependencies: | ||
``` | ||
cd .github/workflows/deps && cmake -GNinja -B build && ninja -C build && cd - | ||
``` | ||
2. Setup the build: | ||
``` | ||
meson setup build --buildtype=debug --libdir=lib --prefer-static --pkg-config-path=$(find . -name "pkgconfig")` | ||
``` | ||
3. Compile: | ||
``` | ||
meson compile −C build | ||
``` | ||
your new version of `linux-enable-ir-emitter` is located in `build/src/` | ||
4. Format the files: | ||
``` | ||
ninja clang-format -C build | ||
``` | ||
5. Ensure clang-tidy pass: | ||
``` | ||
ninja clang-tidy -C build | ||
``` | ||
6. Commit, push and please describe enough what you did in your PR description |
Oops, something went wrong.