From 6b35a376fe796a74ed378c79ad61ef60af8c0836 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 13 Mar 2021 21:21:07 +0300 Subject: workflows: fix Boost caching It seemingly doesn't work unless the key includes runner.os? --- .github/workflows/basic.yml | 2 +- .github/workflows/boost_clang_windows.yml | 2 +- .github/workflows/boost_toolsets.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index 2b29792..89c2fc0 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -40,7 +40,7 @@ jobs: uses: actions/cache@v2 with: path: boost_*.tar.gz - key: boost-1.72.0 + key: ${{ runner.os }}-boost-1.72.0 - name: Build Boost run: | diff --git a/.github/workflows/boost_clang_windows.yml b/.github/workflows/boost_clang_windows.yml index dca79aa..69160f3 100644 --- a/.github/workflows/boost_clang_windows.yml +++ b/.github/workflows/boost_clang_windows.yml @@ -38,7 +38,7 @@ jobs: uses: actions/cache@v2 with: path: '${{ runner.workspace }}/boost/boost_*.tar.gz' - key: boost-${{ matrix.boost-version }} + key: '${{ runner.os }}-boost-${{ matrix.boost-version }}' - name: Clean up PATH uses: egor-tensin/cleanup-path@v1 diff --git a/.github/workflows/boost_toolsets.yml b/.github/workflows/boost_toolsets.yml index 165bc47..8653316 100644 --- a/.github/workflows/boost_toolsets.yml +++ b/.github/workflows/boost_toolsets.yml @@ -114,7 +114,7 @@ jobs: uses: actions/cache@v2 with: path: '${{ runner.workspace }}/boost/boost_*.tar.gz' - key: 'boost-${{ matrix.boost-version }}' + key: '${{ runner.os }}-boost-${{ matrix.boost-version }}' - name: Clean up PATH uses: egor-tensin/cleanup-path@v1 -- cgit v1.2.3