Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# Skip large vendored trees that lint-cpp does not use.
sparse-checkout: |
/*
!/deps/openssl/
!/deps/v8/
Comment on lines +47 to +48

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A checkout limited to the directories needed by lint-cpp would retain about 103 MB and exclude 600 MB:

Exclusion candidate Size (uncompressed)
deps/openssl/ 241.9 MB
deps/v8/ 191.8 MB
deps/icu-small/ 33.2 MB
deps/crates/ 25.7 MB
deps/LIEF/ 16.9 MB
deps/npm/ 14.8 MB
deps/perfetto/ 11.3 MB
deps/simdjson/ 10.5 MB
deps/sqlite/ 10.2 MB
deps/ngtcp2/ 6.4 MB
Other files 37.5 MB
Total 600.3 MB

This PR excludes only V8 and OpenSSL: 434 MB, or 72% of the potential reduction. Keeping the list short reduces maintenance risk: if an excluded directory later becomes a lint input, Makefile's wildcard could silently skip it.

sparse-checkout-cone-mode: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
Expand Down
Loading