Skip to content

Commit 342cd3b

Browse files
committed
refactor: install clang tools on demand
In order of precedence, this patch allows installing clang tools from 1. PyPI (downloaded wheels are verified using SHA256 or Bake2b256) 2. system package manager(s) (if available) 3. static binaries (verified with accompanied SHA512 checksum) Also upgrade cargo/rust dependencies.
1 parent b3a999d commit 342cd3b

43 files changed

Lines changed: 21319 additions & 534 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.config/nextest.toml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,26 @@ nextest-version = "0.9.77"
33

44
[profile.default]
55
# A profile to run most tests, except tests that run longer than 10 seconds
6-
default-filter = "not test(#*rate_limit_secondary) - test(#git::test::with_*) - test(#repo_get_sha)"
6+
default-filter = """\
7+
not test(#*rate_limit_secondary) \
8+
- test(#git::test::with_*) \
9+
- test(#git::test::repo_get_sha) \
10+
- test(#*eval_static_dist)
11+
"""
712

813
# This will flag any test that runs longer than 10 seconds. Useful when writing new tests.
914
slow-timeout = "10s"
1015

16+
# show which tests were skipped
17+
status-level = "skip"
18+
1119
[profile.ci]
1220
# A profile to run only tests that use clang-tidy and/or clang-format
1321
# NOTE: This profile is intended to keep CI runtime low. Locally, use default or all profiles
1422

1523
# This is all tests in tests/ folder + unit test for --extra-args.
1624
default-filter = "kind(test) + test(#*use_extra_args)"
1725

18-
# show which tests were skipped
19-
status-level = "skip"
20-
2126
# show log output from each test
2227
success-output = "final"
2328
failure-output = "immediate-final"

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
fi
6161
- run: rustup update --no-self-update
6262
if: steps.cache.outputs.cache-hit != 'true' || steps.validate.outputs.cache-valid == 'false'
63-
- run: cargo build --bin cpp-linter --release
63+
- run: cargo build --bin cpp-linter --features bin --release
6464
if: steps.cache.outputs.cache-hit != 'true' || steps.validate.outputs.cache-valid == 'false'
6565
- name: Upload build artifact
6666
uses: actions/upload-artifact@v7

.github/workflows/binary-builds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
--bin cpp-linter
132132
--release
133133
--target ${{ matrix.target }}
134-
${{ matrix.vendored && '--features openssl-vendored' || '' }}
134+
--features ${{ matrix.vendored && 'bin,openssl-vendored' || 'bin' }}
135135
136136
- name: Prepare artifacts (unix)
137137
if: runner.os != 'Windows'

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88
exclude: bindings/node/.*package\.json
99
- id: check-docstring-first
1010
- id: check-added-large-files
11-
exclude: '^\.yarn/releases/yarn.*js'
11+
exclude: '^\.yarn/releases/yarn.*js|pypi_clang.*\.json$'
1212
- id: check-yaml
1313
exclude: docs/mkdocs.yml
1414
- id: check-toml

0 commit comments

Comments
 (0)