diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 2445f45a77..d20fa3c508 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -96,7 +96,9 @@ jobs: uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: path: ${{ env.CCACHE_DIR }} - key: ${{ matrix.image }}-ccache + key: ${{ matrix.image }}-ccache-${{ github.run_id }} + restore-keys: | + ${{ matrix.image }}-ccache - name: Configure PcapPlusPlus run: cmake -DLIGHT_PCAPNG_ZSTD=${{ matrix.config-zstd }} -DPCAPPP_BUILD_COVERAGE=ON ${{ matrix.additional-flags }} -S . -B "$BUILD_DIR" @@ -173,7 +175,9 @@ jobs: uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: path: ${{ env.CCACHE_DIR }} - key: ${{ matrix.image }}-ccache + key: ${{ matrix.image }}-ccache-${{ github.run_id }} + restore-keys: | + ${{ matrix.image }}-ccache - name: Configure PcapPlusPlus run: cmake -DPCAPPP_USE_DPDK=ON ${{ matrix.additional-flags }} -S . -B "$BUILD_DIR" @@ -231,7 +235,9 @@ jobs: uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: path: ${{ env.CCACHE_DIR }} - key: ${{ matrix.image }}-ccache + key: ${{ matrix.image }}-ccache-${{ github.run_id }} + restore-keys: | + ${{ matrix.image }}-ccache - name: Configure PcapPlusPlus run: ${{ matrix.configure }} @@ -317,7 +323,9 @@ jobs: uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: path: ${{ env.CCACHE_DIR }} - key: ${{ matrix.os-version }}-ccache + key: ${{ matrix.os-version }}-ccache-${{ github.run_id }} + restore-keys: | + ${{ matrix.os-version }}-ccache - name: Configure PcapPlusPlus # Ensure user have access to network devices instead of giving super-user right @@ -678,7 +686,9 @@ jobs: uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: path: ${{ env.CCACHE_DIR }} - key: ${{ matrix.image }}-ccache + key: ${{ matrix.image }}-ccache-${{ github.run_id }} + restore-keys: | + ${{ matrix.image }}-ccache - name: Configure PcapPlusPlus run: cmake -DPCAPPP_USE_XDP=ON -DPCAPPP_BUILD_COVERAGE=ON -S . -B $BUILD_DIR @@ -740,7 +750,9 @@ jobs: uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: path: ${{ env.CCACHE_DIR }} - key: ${{ matrix.engine }}-${{ matrix.sanitizer }}-ccache + key: ${{ matrix.engine }}-${{ matrix.sanitizer }}-ccache-${{ github.run_id }} + restore-keys: | + ${{ matrix.engine }}-${{ matrix.sanitizer }}-ccache - name: Compile PcapPlusPlus Fuzzer application run: |