make sure cmake cache misses when configuration files change

This commit is contained in:
Kirill Rodriguez 2024-10-11 12:29:50 +01:00
parent 2321506d41
commit 87c921f9fc
No known key found for this signature in database
GPG Key ID: 2AA85EC2AD7F85EA

View File

@ -66,12 +66,13 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: build path: build
key: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-v3 key: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-${{ hashFiles('CMakeLists.txt', 'cmake/**', '.github/**') }}-v4
- name: Cache Dist Build - name: Cache Dist Build
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: dist path: dist
key: ${{ matrix.os }}-cmake-dist-${{ matrix.EVENT_MATRIX }}-v3 key: ${{ matrix.os }}-cmake-dist-${{ matrix.EVENT_MATRIX }}-${{ hashFiles('CMakeLists.txt', 'cmake/**', '.github/**') }}-v4
- name: Install Depends - name: Install Depends
run: | run: |
@ -267,7 +268,7 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: build path: build
key: ${{ matrix.os }}-${{ matrix.EVENT_MATRIX }}-v4 key: ${{ matrix.os }}-${{ matrix.EVENT_MATRIX }}-${{ hashFiles('CMakeLists.txt', 'cmake/**', '.github/**') }}-v4
- name: Prepare vcpkg - name: Prepare vcpkg
# Newer versions expect a vcpkg manifest, so stick to v7, that could handle vcpkgArguments # Newer versions expect a vcpkg manifest, so stick to v7, that could handle vcpkgArguments
@ -471,7 +472,7 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: build path: build
key: mingw-cmake-${{ matrix.EVENT_MATRIX }}-v4 key: mingw-cmake-${{ matrix.EVENT_MATRIX }}-${{ hashFiles('CMakeLists.txt', 'cmake/**', '.github/**') }}-v4
- name: Setup MSYS2 - name: Setup MSYS2
uses: msys2/setup-msys2@v2 uses: msys2/setup-msys2@v2
@ -559,7 +560,7 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: build path: build
key: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-v3 key: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-${{ hashFiles('CMakeLists.txt', 'cmake/**', '.github/**') }}-v4
- name: Install Depends - name: Install Depends
run: brew install mbedtls run: brew install mbedtls
@ -702,7 +703,7 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: build path: build
key: freebsd-${{ matrix.release }}-cmake-${{ matrix.EVENT_MATRIX }}-v1 key: freebsd-${{ matrix.release }}-cmake-${{ matrix.EVENT_MATRIX }}-${{ hashFiles('CMakeLists.txt', 'cmake/**', '.github/**') }}-v4
- name: Build - name: Build
uses: vmactions/freebsd-vm@v1 uses: vmactions/freebsd-vm@v1
@ -858,7 +859,7 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: build path: build
key: openbsd-${{ matrix.release }}-cmake-${{ matrix.EVENT_MATRIX }}-v1 key: openbsd-${{ matrix.release }}-cmake-${{ matrix.EVENT_MATRIX }}-${{ hashFiles('CMakeLists.txt', 'cmake/**', '.github/**') }}-v1
- name: Build - name: Build
uses: vmactions/openbsd-vm@v1 uses: vmactions/openbsd-vm@v1
@ -1007,7 +1008,7 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: build path: build
key: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-v4 key: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-${{ hashFiles('CMakeLists.txt', 'cmake/**', '.github/**') }}-v4
- name: Xcode - name: Xcode
uses: maxim-lobanov/setup-xcode@v1 uses: maxim-lobanov/setup-xcode@v1