Skip to content

Commit 6577ce8

Browse files
committed
[cicd_cmake_multi_platform.yml] local cache does not work as expected
1 parent cf9b0b6 commit 6577ce8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/cicd_cmake_multi_platform.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ jobs:
112112
id : str1
113113
shell: bash
114114
run : |
115+
echo "date=$(date +%y-%m-%d)" >> "$GITHUB_OUTPUT"
115116
echo "date_time=$(date +%y-%m-%d_%H-%M-%S)" >> "$GITHUB_OUTPUT"
116117
echo "dir_path_prj=${{ github.workspace }}" >> "$GITHUB_OUTPUT" # full path
117118
echo "dir_name_build=build_${{ env.PRJ_NAME }}_${{ matrix.bp }}_${{ matrix.bt }}" >> "$GITHUB_OUTPUT"
@@ -177,8 +178,13 @@ jobs:
177178
id : cache_local
178179
uses: actions/cache@v4
179180
with:
180-
path: "${{ steps.str1.outputs.dir_cache_local }}"
181-
key : ${{ runner.os }}-${{ hashFiles('.local/bin/*', '.local/lib/*') }}
181+
path: |
182+
"${{ steps.str1.outputs.dir_cache_local }}"
183+
"${{ steps.str1.outputs.dir_cache_local }}/bin/*"
184+
"${{ steps.str1.outputs.dir_cache_local }}/lib/*"
185+
"${{ steps.str1.outputs.dir_cache_local }}/lib/debug/*"
186+
key : ${{ runner.os }}_local_${{ steps.str1.outputs.date }}
187+
##key : ${{ runner.os }}-${{ hashFiles('.local/bin/*', '.local/lib/*') }}
182188

183189
## https://github.com/marketplace/actions/install-winget
184190
- name: get/install winget

0 commit comments

Comments
 (0)