Skip to content

Commit 6a25348

Browse files
committed
ci(cmake-build): shrink cache range
1 parent 0d5100f commit 6a25348

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

.github/actions/cmake-build-and-test/action.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,17 @@ runs:
3838
vcpkgDirectory: ${{ inputs.vcpkg-root }}
3939

4040
- name: Run before cmake build
41-
id: before-cmake-build
4241
run: ${{ inputs.before-build }}
4342
shell: bash
4443

45-
- name: Cache builds
46-
id: cache-build
44+
- name: Cache vcpkg builds
4745
uses: actions/cache@v3
4846
with:
4947
path: |
50-
${{ inputs.build-dir }}
51-
!${{ inputs.build-dir }}/CMakeCache.txt
52-
!${{ inputs.build-dir }}/CMakeFiles
53-
!${{ inputs.build-dir }}/clang-tidy-report
48+
${{ inputs.build-dir }}/vcpkg_installed
5449
key: ${{ runner.os }}-${{ inputs.build-type }}
5550

5651
- name: Install dependencies and generate project files
57-
id: cmake-config
5852
run: cmake -S "${{ github.workspace }}" -B "${{ inputs.build-dir }}" -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -DCMAKE_TOOLCHAIN_FILE="${{ inputs.vcpkg-root }}/scripts/buildsystems/vcpkg.cmake" -DCMAKE_BUILD_TYPE=${{ inputs.build-type }} ${{ inputs.config-option }}
5953
shell: bash
6054

0 commit comments

Comments
 (0)