From 06bbf8f7431e51576c12b1479305d66d0cdf7de8 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 14 Jul 2020 10:36:14 +0200 Subject: [PATCH] GitHub actions: make ccache actually working --- .github/workflows/packages.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 19503abe3..acbcca584 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -63,7 +63,8 @@ jobs: uses: actions/cache@v1 with: path: deb-icinga2/ccache - key: '${{ matrix.distro.name }}/${{ matrix.distro.codename }}-ccache' + key: |- + ${{ matrix.distro.name }}/${{ matrix.distro.codename }}-ccache-${{ hashFiles('deb-icinga2/ccache') }} - name: Binary x64 run: | @@ -197,7 +198,8 @@ jobs: uses: actions/cache@v1 with: path: rpm-icinga2/ccache - key: '${{ matrix.distro.name }}/${{ matrix.distro.release }}-ccache' + key: |- + ${{ matrix.distro.name }}/${{ matrix.distro.release }}-ccache-${{ hashFiles('rpm-icinga2/ccache') }} - name: Binary if: "steps.vars.outputs.CAN_BUILD == 'true'" @@ -266,7 +268,8 @@ jobs: uses: actions/cache@v1 with: path: raspbian-icinga2/ccache - key: 'raspbian/${{ matrix.codename }}-ccache' + key: |- + raspbian/${{ matrix.codename }}-ccache-${{ hashFiles('raspbian-icinga2/ccache') }} - name: Binary run: |