Skip to content

Commit d5c6988

Browse files
committed
Corrected code to do more to delete cache.
1 parent 018d45b commit d5c6988

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/pre.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424

25+
# Debugging step
26+
- name: Pre-Cleanup Directory Listing
27+
run: ls -la ~/go/pkg/mod || echo "Directory does not exist"
28+
2529
# Clean cache directories on Linux/Mac
2630
- name: Clean Cache on Linux/Mac
2731
if: runner.os != 'Windows'
@@ -48,9 +52,9 @@ jobs:
4852
path: |
4953
~/.cache/go-build
5054
~/go/pkg/mod
51-
key: go-mod-${{ hashFiles('**/go.sum') }}
55+
key: go-mod-${{ matrix.os }}-${{ hashFiles('**/go.sum') }}
5256
restore-keys: |
53-
go-mod-
57+
go-mod-${{ matrix.os }}-
5458
5559
# Run tests
5660
- uses: ./.github/actions/test

0 commit comments

Comments
 (0)