Skip to content

Commit 7d6ddb3

Browse files
committed
Add verbose caching
1 parent 6e3f052 commit 7d6ddb3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ jobs:
6666
run: |
6767
hash=$(git ls-tree -r HEAD --name-only Source Plugins JuceLibraryCode CMakeLists.txt HelperFunctions.cmake | sha256sum | cut -d' ' -f1 | cut -c1-16)
6868
echo "hash=$hash" >> $GITHUB_OUTPUT
69+
echo "Source hash: $hash"
70+
echo "Cache key: windows-build-$hash"
71+
echo "Commit: $(git rev-parse HEAD)"
6972
shell: bash
7073
- name: Restore build cache
7174
uses: actions/cache@v4
@@ -86,6 +89,17 @@ jobs:
8689
run: |
8790
cd Build
8891
msbuild ALL_BUILD.vcxproj -p:Configuration=Release -p:Platform=x64 -m
92+
- name: Verify Build directory before caching
93+
if: steps.build-cache.outputs.cache-hit != 'true'
94+
shell: powershell
95+
run: |
96+
if (Test-Path "Build\Release\open-ephys.exe") {
97+
Write-Host "Build artifact found: Build\Release\open-ephys.exe"
98+
Get-Item "Build\Release\open-ephys.exe" | Select-Object FullName, Length, LastWriteTime
99+
} else {
100+
Write-Host "WARNING: Build artifact not found!"
101+
Get-ChildItem -Path Build -Recurse -File | Select-Object FullName -First 10
102+
}
89103
- name: Save build cache
90104
if: steps.build-cache.outputs.cache-hit != 'true'
91105
uses: actions/cache@v4

0 commit comments

Comments
 (0)