File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build & Test
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches : [main]
7+
8+ jobs :
9+ build-and-test :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ - name : Install Clang 17
14+ run : |
15+ sudo apt-get update
16+ sudo apt-get install -y clang-17 clang-tidy-17
17+ - name : Configure build
18+ run : |
19+ CC=clang-17 CXX=clang++-17 cmake -B build \
20+ -DCMAKE_BUILD_TYPE=Debug \
21+ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
22+ - name : Build
23+ run : |
24+ cmake --build build -- -j$(nproc)
25+ - name : Run tests
26+ run : |
27+ build/src/test/pdf-test-main
Original file line number Diff line number Diff line change 1+ name : clang-format
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches : [main]
7+
8+ jobs :
9+ clang-format :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ with :
14+ ref : ${{ github.head_ref }}
15+ fetch-depth : 2
16+ - uses : jayllyz/clang-format-action@v1
17+ with :
18+ clang-version : 17
19+ - name : Commit changes
20+ uses : stefanzweifel/git-auto-commit-action@v5
21+ with :
22+ commit_message : " style: clang format files"
23+ branch : ${{ github.head_ref }}
Original file line number Diff line number Diff line change 1+ name : clang-tidy
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches : [main]
7+
8+ jobs :
9+ tidy :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ - name : Install Clang 17
14+ run : |
15+ sudo apt-get update
16+ sudo apt-get install -y clang-17 clang-tidy-17
17+ - name : Configure build
18+ run : |
19+ CC=clang-17 CXX=clang++-17 cmake -B build \
20+ -DCMAKE_BUILD_TYPE=Debug \
21+ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
22+ - name : Run clang-tidy
23+ run : |
24+ find . -iname '*.c' | \
25+ xargs clang-tidy-17 \
26+ -extra-arg="-UTEST" \
27+ --config-file=./.clang-tidy \
28+ -p build
Original file line number Diff line number Diff line change 1+ name : pre-commit
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches : [main]
7+
8+ jobs :
9+ pre-commit :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ - uses : pre-commit/action@v3.0.1
Original file line number Diff line number Diff line change 66 - id : end-of-file-fixer
77 - id : check-yaml
88 - id : check-added-large-files
9- - repo : https://github.com/pocc/pre-commit-hooks
10- rev : v1.3.5
11- hooks :
12- - id : clang-format
139 - repo : https://github.com/crate-ci/typos
1410 rev : v1.16.5
1511 hooks :
You can’t perform that action at this time.
0 commit comments