From abb34a71c7c0c020ac821613ae6164386b955f67 Mon Sep 17 00:00:00 2001 From: wangxiaoxiong Date: Wed, 8 Nov 2023 20:43:37 +0800 Subject: [PATCH] fix: ci cache use two deps --- .github/workflows/pika.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pika.yml b/.github/workflows/pika.yml index 30e2ea8ad4..98815853b1 100644 --- a/.github/workflows/pika.yml +++ b/.github/workflows/pika.yml @@ -120,6 +120,16 @@ jobs: source /opt/rh/devtoolset-10/enable cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DUSE_PIKA_TOOLS=ON -DCMAKE_CXX_FLAGS_DEBUG=-fsanitize=address + - uses: actions/cache@v3 + with: + path: ${{ github.workspace }}/deps + key: ${{ runner.os }}-centos-deps-${{ hashFiles('**/CMakeLists.txt') }} + + - uses: actions/cache@v3 + with: + path: ${{ github.workspace }}/buildtrees + key: ${{ runner.os }}-centos-buildtrees-${{ hashFiles('**/CMakeLists.txt') }} + - name: Build run: | source /opt/rh/devtoolset-10/enable @@ -168,6 +178,16 @@ jobs: export CC=/usr/local/opt/gcc@10/bin/gcc-10 cmake -B build -DCMAKE_C_COMPILER=/usr/local/opt/gcc@10/bin/gcc-10 -DUSE_PIKA_TOOLS=ON -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_CXX_FLAGS_DEBUG=-fsanitize=address + - uses: actions/cache@v3 + with: + path: ${{ github.workspace }}/deps + key: ${{ runner.os }}-deps-${{ hashFiles('**/CMakeLists.txt') }} + + - uses: actions/cache@v3 + with: + path: ${{ github.workspace }}/buildtrees + key: ${{ runner.os }}-buildtrees-${{ hashFiles('**/CMakeLists.txt') }} + - name: Build run: | cmake --build build --config ${{ env.BUILD_TYPE }} @@ -227,4 +247,3 @@ jobs: push: false tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} -