Skip to content

Commit e0a8238

Browse files
author
codethinki
committed
cached vcpkg too soon on windows, lets see if it works now
1 parent 329720f commit e0a8238

1 file changed

Lines changed: 21 additions & 20 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Free Disk Space
3535
run: |
3636
sudo rm -rf /usr/local/lib/android
37-
37+
3838
- uses: actions/checkout@v4
3939
with:
4040
submodules: recursive
@@ -44,8 +44,7 @@ jobs:
4444
with:
4545
compiler: ${{ matrix.compiler }}
4646

47-
48-
# Vcpkg cache
47+
#configure
4948
- name: Restore vcpkg cache
5049
id: restore-vcpkg-linux
5150
uses: actions/cache/restore@v4
@@ -61,14 +60,8 @@ jobs:
6160
run: |
6261
cp ci/CMakeUserPresets.json CMakeUserPresets.json
6362
cmake --preset ci_${{ matrix.compiler }}_af_cpu
64-
65-
- name: Save vcpkg cache
66-
if: steps.restore-vcpkg-linux.cache-hit != 'true'
67-
uses: actions/cache/save@v4
68-
with:
69-
path: vcpkg_installed
70-
key: ${{ steps.restore-vcpkg-linux.outputs.cache-primary-key }}
71-
63+
64+
#build
7265
- name: Restore BuildCache cache
7366
id: restore-buildcache-linux
7467
uses: actions/cache/restore@v4
@@ -89,6 +82,13 @@ jobs:
8982
path: .buildcache
9083
key: ${{ steps.restore-buildcache-linux.outputs.cache-primary-key }}
9184

85+
- name: Save vcpkg cache
86+
if: steps.restore-vcpkg-linux.cache-hit != 'true'
87+
uses: actions/cache/save@v4
88+
with:
89+
path: vcpkg_installed
90+
key: ${{ steps.restore-vcpkg-linux.outputs.cache-primary-key }}
91+
9292
- name: Test
9393
uses: ./.github/actions/run-linux
9494
with:
@@ -97,7 +97,7 @@ jobs:
9797
- name: Fix permissions
9898
if: always()
9999
run: sudo chown -R $(id -u):$(id -g) out/build
100-
100+
101101
#
102102
# Windows
103103
#
@@ -107,7 +107,7 @@ jobs:
107107
strategy:
108108
fail-fast: false
109109
matrix:
110-
compiler: [msvc]
110+
compiler: [msvc]
111111
# clang on windows skipped for simplicity unless requested, cth had it.
112112
# Keeping msvc only to save CI time/complexity initially.
113113

@@ -139,6 +139,7 @@ jobs:
139139
with:
140140
compiler: ${{ matrix.compiler }}
141141

142+
#configure
142143
- name: Restore vcpkg cache
143144
id: restore-vcpkg-win
144145
uses: actions/cache/restore@v4
@@ -154,13 +155,7 @@ jobs:
154155
Copy-Item ci/CMakeUserPresets.json CMakeUserPresets.json
155156
cmake --preset ci_msvc_af_cpu
156157
157-
- name: Save vcpkg cache
158-
if: steps.restore-vcpkg-win.cache-hit != 'true'
159-
uses: actions/cache/save@v4
160-
with:
161-
path: vcpkg_installed
162-
key: ${{ steps.restore-vcpkg-win.outputs.cache-primary-key }}
163-
158+
#build
164159
- name: Restore BuildCache cache
165160
id: restore-buildcache-win
166161
uses: actions/cache/restore@v4
@@ -181,6 +176,12 @@ jobs:
181176
path: .buildcache
182177
key: ${{ steps.restore-buildcache-win.outputs.cache-primary-key }}
183178

179+
- name: Save vcpkg cache
180+
if: steps.restore-vcpkg-win.cache-hit != 'true'
181+
uses: actions/cache/save@v4
182+
with:
183+
path: vcpkg_installed
184+
key: ${{ steps.restore-vcpkg-win.outputs.cache-primary-key }}
184185
- name: Test
185186
shell: pwsh
186187
run: |

0 commit comments

Comments
 (0)