Skip to content

Commit bd684f1

Browse files
committed
[cicd_cmake_multi_platform.yml] local cache does not work as expected 5
1 parent 3c479e7 commit bd684f1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/cicd_cmake_multi_platform.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ jobs:
114114
run : |
115115
echo "date=$(date +%y-%m-%d)" >> "$GITHUB_OUTPUT"
116116
echo "date_time=$(date +%y-%m-%d_%H-%M-%S)" >> "$GITHUB_OUTPUT"
117-
echo "dir_path_prj=${{ github.workspace }}" >> "$GITHUB_OUTPUT" # full path
117+
echo "dir_path_prj=${{ github.workspace }}" >> "$GITHUB_OUTPUT"
118118
echo "dir_name_build=build_${{ env.PRJ_NAME }}_${{ matrix.bp }}_${{ matrix.bt }}" >> "$GITHUB_OUTPUT"
119-
echo "dir_cache_local=${{ github.workspace }}/.local" >> "$GITHUB_OUTPUT" # full path
119+
echo "dir_cache_local=${{ github.workspace }}/.local" >> "$GITHUB_OUTPUT"
120120
- name: set reusable str2
121121
id : str2
122122
shell: bash
@@ -151,6 +151,8 @@ jobs:
151151
cmake -E make_directory "${{ steps.str1.outputs.dir_cache_local }}/bin"
152152
cmake -E make_directory "${{ steps.str1.outputs.dir_cache_local }}/lib"
153153
echo "${{ steps.str1.outputs.dir_cache_local }}/bin" >> "$GITHUB_PATH"
154+
cmake -E touch "${{ steps.str1.outputs.dir_cache_local }}/.DS_Store"
155+
## XXX: .DS_Store -> create empty file and see if works (Post cache local)
154156

155157
- name: ENV List All bef
156158
working-directory: ${{ steps.str3.outputs.dir_path_env }}
@@ -180,8 +182,8 @@ jobs:
180182
uses: actions/cache@v4
181183
with:
182184
path: |
183-
"${{ steps.str1.outputs.dir_cache_local }}"
184-
key : ${{ runner.os }}_local_${{ steps.str1.outputs.date }}
185+
${{ steps.str1.outputs.dir_cache_local }}
186+
key : ${{ runner.os }}-local-${{ steps.str1.outputs.date }}
185187

186188
## https://github.com/marketplace/actions/install-winget
187189
- name: get/install winget

0 commit comments

Comments
 (0)