change: improve clang-tidy CI speed by only running autogen & autorcc

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2026-04-02 03:18:45 +05:00
parent 031015b332
commit 6e0d9b8ca0
No known key found for this signature in database
GPG key ID: B77C34313AEE1FFF
5 changed files with 10 additions and 89 deletions

View file

@ -28,19 +28,14 @@ jobs:
fetch-depth: 0 # Required for diffing later on
submodules: "true"
- name: Setup sccache
uses: hendrikmuhs/ccache-action@v1.2.23
with:
variant: sccache
- name: Install Nix
uses: cachix/install-nix-action@v31
- name: Run build
- name: Run source generators
# TODO(@getchoo): Figure out how to make this work with PCH
run: |
nix develop --command bash -c '
cmake -B build -D Launcher_USE_PCH=OFF -D CMAKE_CXX_COMPILER_LAUNCHER=sccache && cmake --build build
cmake -B build -D Launcher_USE_PCH=OFF && cmake --build build --target autogen autorcc
'
# TODO: Use SARIF after https://github.com/psastras/sarif-rs/issues/638 is fixed