Skip to content

Commit 77c721b

Browse files
committed
test-windows.yml: Try to fix caching
1 parent 8c19e0d commit 77c721b

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/test-windows.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ jobs:
2929
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
3030
with:
3131
path: |
32-
"${{ github.workspace }}/vcpkgAssets"
33-
"${{ github.workspace }}/vcpkgBCache"
34-
"${{ github.workspace }}/vcpkgBin"
35-
"${{ github.workspace }}/vcpkgBuild"
36-
key: vcpkgCache-${{ github.repository_owner }}-${{ matrix.os }}-${{ matrix.triplet }}-${{ hashFiles('vcpkg.json') }}
32+
"${{ github.workspace }}\\vcpkgAssets"
33+
"${{ github.workspace }}\\vcpkgBCache"
34+
"${{ github.workspace }}\\vcpkgBin"
35+
"${{ github.workspace }}\\vcpkgBuild"
36+
key: vcpkgCache-${{ github.repository_owner }}-windows-latest-x64-windows-${{ hashFiles('.github/workflows/vcpkg.json') }}
3737

3838
- name: Create directories on cache miss
3939
run: |
40-
mkdir -p "${{ github.workspace }}/vcpkgAssets"
41-
mkdir -p "${{ github.workspace }}/vcpkgBCache"
42-
mkdir -p "${{ github.workspace }}/vcpkgBin"
43-
mkdir -p "${{ github.workspace }}/vcpkgBuild"
40+
New-Item -Force -ItemType Directory -Path "${{ github.workspace }}\\vcpkgAssets"
41+
New-Item -Force -ItemType Directory -Path "${{ github.workspace }}\\vcpkgBCache"
42+
New-Item -Force -ItemType Directory -Path "${{ github.workspace }}\\vcpkgBin"
43+
New-Item -Force -ItemType Directory -Path "${{ github.workspace }}\\vcpkgBuild"
4444
if: steps.cache-vcpkg-restore.outputs.cache-hit != 'true'
4545

4646
- uses: actions/setup-python@v6
@@ -78,9 +78,9 @@ jobs:
7878
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
7979
with:
8080
path: |
81-
"${{ github.workspace }}/vcpkgAssets"
82-
"${{ github.workspace }}/vcpkgBCache"
83-
"${{ github.workspace }}/vcpkgBin"
84-
"${{ github.workspace }}/vcpkgBuild"
81+
"${{ github.workspace }}\\vcpkgAssets"
82+
"${{ github.workspace }}\\vcpkgBCache"
83+
"${{ github.workspace }}\\vcpkgBin"
84+
"${{ github.workspace }}\\vcpkgBuild"
8585
key: ${{ steps.cache-vcpkg-restore.outputs.cache-primary-key }}
8686
if: steps.cache-vcpkg-restore.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)