Add cache to clang-tidy.yml
This commit is contained in:
parent
ee46bd4576
commit
b708633c95
1 changed files with 15 additions and 0 deletions
15
.github/workflows/clang-tidy.yml
vendored
15
.github/workflows/clang-tidy.yml
vendored
|
@ -13,6 +13,21 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Create vcpkg build folder
|
||||||
|
run: |
|
||||||
|
mkdir -p ${{runner.workspace}}/build/vcpkg_installed
|
||||||
|
mkdir -p ${{runner.workspace}}/build/_deps
|
||||||
|
|
||||||
|
- name: Cache vcpkg
|
||||||
|
uses: actions/cache@v2
|
||||||
|
env:
|
||||||
|
cache-name: vcpkg-modules
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
${{runner.workspace}}/build/vcpkg_installed
|
||||||
|
${{runner.workspace}}/build/_deps
|
||||||
|
key: clang-tidy-${{ runner.os }}-${{ hashFiles('vcpkg.json') }}
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
run: cmake -B ${{github.workspace}}/build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue