mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
change: improve clang-tidy CI speed by only running autogen & autorcc
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
031015b332
commit
6e0d9b8ca0
5 changed files with 10 additions and 89 deletions
9
.github/workflows/clang-tidy.yml
vendored
9
.github/workflows/clang-tidy.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue