5151 name : wrappers-macos
5252 path : ${{ github.workspace }}/wrappers/build/**
5353 retention-days : 1
54+ if-no-files-found : error
5455 if : matrix.os == 'ubuntu' && steps.check-cache-macos.outputs.cache-hit == 'true'
5556 - run : git clean -fdx
5657 if : matrix.os == 'ubuntu'
6768 name : wrappers-linux
6869 path : ${{ github.workspace }}/wrappers/build/**
6970 retention-days : 1
71+ if-no-files-found : error
7072 if : matrix.os == 'ubuntu' && steps.check-cache-linux.outputs.cache-hit == 'true'
7173 - run : git clean -fdx
7274 if : matrix.os == 'ubuntu'
8385 name : wrappers-ios-Simulator
8486 path : ${{ github.workspace }}/wrappers/build/**
8587 retention-days : 1
88+ if-no-files-found : error
8689 if : matrix.os == 'ubuntu' && steps.check-cache-ios-Simulator.outputs.cache-hit == 'true'
8790 - run : git clean -fdx
8891 if : matrix.os == 'ubuntu'
99102 name : wrappers-ios-Device
100103 path : ${{ github.workspace }}/wrappers/build/**
101104 retention-days : 1
105+ if-no-files-found : error
102106 if : matrix.os == 'ubuntu' && steps.check-cache-ios-Device.outputs.cache-hit == 'true'
103107 - run : git clean -fdx
104108 if : matrix.os == 'ubuntu'
@@ -115,6 +119,7 @@ jobs:
115119 name : wrappers-ios-Catalyst
116120 path : ${{ github.workspace }}/wrappers/build/**
117121 retention-days : 1
122+ if-no-files-found : error
118123 if : matrix.os == 'ubuntu' && steps.check-cache-ios-Catalyst.outputs.cache-hit == 'true'
119124 - run : git clean -fdx
120125 if : matrix.os == 'ubuntu'
@@ -131,6 +136,7 @@ jobs:
131136 name : wrappers-android-armeabi-v7a
132137 path : ${{ github.workspace }}/wrappers/build/**
133138 retention-days : 1
139+ if-no-files-found : error
134140 if : matrix.os == 'ubuntu' && steps.check-cache-android-armeabi-v7a.outputs.cache-hit == 'true'
135141 - run : git clean -fdx
136142 if : matrix.os == 'ubuntu'
@@ -147,6 +153,7 @@ jobs:
147153 name : wrappers-android-arm64-v8a
148154 path : ${{ github.workspace }}/wrappers/build/**
149155 retention-days : 1
156+ if-no-files-found : error
150157 if : matrix.os == 'ubuntu' && steps.check-cache-android-arm64-v8a.outputs.cache-hit == 'true'
151158 - run : git clean -fdx
152159 if : matrix.os == 'ubuntu'
@@ -163,6 +170,7 @@ jobs:
163170 name : wrappers-android-x86
164171 path : ${{ github.workspace }}/wrappers/build/**
165172 retention-days : 1
173+ if-no-files-found : error
166174 if : matrix.os == 'ubuntu' && steps.check-cache-android-x86.outputs.cache-hit == 'true'
167175 - run : git clean -fdx
168176 if : matrix.os == 'ubuntu'
@@ -179,6 +187,7 @@ jobs:
179187 name : wrappers-android-x86_64
180188 path : ${{ github.workspace }}/wrappers/build/**
181189 retention-days : 1
190+ if-no-files-found : error
182191 if : matrix.os == 'ubuntu' && steps.check-cache-android-x86_64.outputs.cache-hit == 'true'
183192 - run : git clean -fdx
184193 if : matrix.os == 'ubuntu'
@@ -195,6 +204,7 @@ jobs:
195204 name : wrappers-windows-Win32
196205 path : ${{ github.workspace }}/wrappers/build/**
197206 retention-days : 1
207+ if-no-files-found : error
198208 if : matrix.os == 'windows' && steps.check-cache-windows-Win32.outputs.cache-hit == 'true'
199209 - run : git clean -fdx
200210 if : matrix.os == 'windows'
@@ -211,6 +221,7 @@ jobs:
211221 name : wrappers-windows-x64
212222 path : ${{ github.workspace }}/wrappers/build/**
213223 retention-days : 1
224+ if-no-files-found : error
214225 if : matrix.os == 'windows' && steps.check-cache-windows-x64.outputs.cache-hit == 'true'
215226 - run : git clean -fdx
216227 if : matrix.os == 'windows'
@@ -227,6 +238,7 @@ jobs:
227238 name : wrappers-windows-ARM64
228239 path : ${{ github.workspace }}/wrappers/build/**
229240 retention-days : 1
241+ if-no-files-found : error
230242 if : matrix.os == 'windows' && steps.check-cache-windows-ARM64.outputs.cache-hit == 'true'
231243 - run : git clean -fdx
232244 if : matrix.os == 'windows'
@@ -243,6 +255,7 @@ jobs:
243255 name : wrappers-windows-uwp-Win32
244256 path : ${{ github.workspace }}/wrappers/build/**
245257 retention-days : 1
258+ if-no-files-found : error
246259 if : matrix.os == 'windows' && steps.check-cache-windows-uwp-Win32.outputs.cache-hit == 'true'
247260 - run : git clean -fdx
248261 if : matrix.os == 'windows'
@@ -259,6 +272,7 @@ jobs:
259272 name : wrappers-windows-uwp-x64
260273 path : ${{ github.workspace }}/wrappers/build/**
261274 retention-days : 1
275+ if-no-files-found : error
262276 if : matrix.os == 'windows' && steps.check-cache-windows-uwp-x64.outputs.cache-hit == 'true'
263277 - run : git clean -fdx
264278 if : matrix.os == 'windows'
@@ -275,6 +289,7 @@ jobs:
275289 name : wrappers-windows-uwp-ARM
276290 path : ${{ github.workspace }}/wrappers/build/**
277291 retention-days : 1
292+ if-no-files-found : error
278293 if : matrix.os == 'windows' && steps.check-cache-windows-uwp-ARM.outputs.cache-hit == 'true'
279294 - run : git clean -fdx
280295 if : matrix.os == 'windows'
@@ -291,6 +306,7 @@ jobs:
291306 name : wrappers-windows-uwp-ARM64
292307 path : ${{ github.workspace }}/wrappers/build/**
293308 retention-days : 1
309+ if-no-files-found : error
294310 if : matrix.os == 'windows' && steps.check-cache-windows-uwp-ARM64.outputs.cache-hit == 'true'
295311 - run : git clean -fdx
296312 if : matrix.os == 'windows'
@@ -322,6 +338,7 @@ jobs:
322338 name : wrappers-macos
323339 path : ${{ github.workspace }}/wrappers/build/**
324340 retention-days : 1
341+ if-no-files-found : error
325342 ios :
326343 runs-on : macos-latest
327344 name : iOS
@@ -355,6 +372,7 @@ jobs:
355372 name : wrappers-ios-${{ matrix.arch }}
356373 path : ${{ github.workspace }}/wrappers/build/**
357374 retention-days : 1
375+ if-no-files-found : error
358376 if : needs.check-cache.outputs.wrappers-ios-Simulator != 'true' || needs.check-cache.outputs.wrappers-ios-Device != 'true' || needs.check-cache.outputs.wrappers-ios-Catalyst != 'true'
359377 linux :
360378 runs-on : ubuntu-latest
@@ -403,6 +421,7 @@ jobs:
403421 name : wrappers-linux
404422 path : ${{ github.workspace }}/wrappers/build/**
405423 retention-days : 1
424+ if-no-files-found : error
406425 android :
407426 runs-on : ubuntu-20.04
408427 name : Android
@@ -437,6 +456,7 @@ jobs:
437456 name : wrappers-android-${{ matrix.arch }}
438457 path : ${{ github.workspace }}/wrappers/build/**
439458 retention-days : 1
459+ if-no-files-found : error
440460 if : needs.check-cache.outputs.wrappers-android-armeabi-v7a != 'true' || needs.check-cache.outputs.wrappers-android-arm64-v8a != 'true' || needs.check-cache.outputs.wrappers-android-x86 != 'true' || needs.check-cache.outputs.wrappers-android-x86_64 != 'true'
441461 windows :
442462 runs-on : windows-latest
@@ -468,11 +488,15 @@ jobs:
468488 shell : bash
469489 run : echo "::set-output name=commit::$(git rev-parse HEAD)"
470490 - name : Setup Vcpkg
491+ id : setup-vcpkg
471492 uses : friendlyanon/setup-vcpkg@v1
472493 with :
473494 path : wrappers/realm-core/tools/vcpkg/ports
474- cache-key : vcpkg-windows-${{ matrix.arch }}-${{ hashFiles('./wrappers/realm-core/tools/vcpkg/vcpkg.json') }}-${{ steps.vcpkg_cache_key.outputs.commit }}
475- cache-restore-keys : vcpkg-windows-${{ matrix.arch }}-
495+ cache-key : vcpkg3-windows-${{ matrix.arch }}-${{ steps.vcpkg_cache_key.outputs.commit }}-${{ hashFiles('./wrappers/realm-core/tools/vcpkg/vcpkg.json') }}
496+ cache-restore-keys : vcpkg3-windows-${{ matrix.arch }}-${{ steps.vcpkg_cache_key.outputs.commit }}
497+ - name : Refetch vcpkg
498+ run : git fetch --unshallow
499+ working-directory : wrappers/realm-core/tools/vcpkg/ports
476500 - name : Build wrappers
477501 run : pwsh ./wrappers/build.ps1 Windows -Platforms ${{ matrix.arch }} -Configuration Release -EnableLTO
478502 if : steps.check-cache.outputs.cache-hit != 'true'
@@ -482,6 +506,7 @@ jobs:
482506 name : wrappers-windows-${{ matrix.arch }}
483507 path : ${{ github.workspace }}/wrappers/build/**
484508 retention-days : 1
509+ if-no-files-found : error
485510 if : needs.check-cache.outputs.wrappers-windows-Win32 != 'true' || needs.check-cache.outputs.wrappers-windows-x64 != 'true' || needs.check-cache.outputs.wrappers-windows-ARM64 != 'true'
486511 uwp :
487512 runs-on : windows-latest
@@ -514,11 +539,15 @@ jobs:
514539 shell : bash
515540 run : echo "::set-output name=commit::$(git rev-parse HEAD)"
516541 - name : Setup Vcpkg
542+ id : setup-vcpkg
517543 uses : friendlyanon/setup-vcpkg@v1
518544 with :
519545 path : wrappers/realm-core/tools/vcpkg/ports
520- cache-key : vcpkg-uwp-${{ matrix.arch }}-${{ hashFiles('./wrappers/realm-core/tools/vcpkg/vcpkg.json') }}-${{ steps.vcpkg_cache_key.outputs.commit }}
521- cache-restore-keys : vcpkg-uwp-${{ matrix.arch }}-
546+ cache-key : vcpkg3-uwp-${{ matrix.arch }}-${{ steps.vcpkg_cache_key.outputs.commit }}-${{ hashFiles('./wrappers/realm-core/tools/vcpkg/vcpkg.json') }}
547+ cache-restore-keys : vcpkg3-uwp-${{ matrix.arch }}-${{ steps.vcpkg_cache_key.outputs.commit }}
548+ - name : Refetch vcpkg
549+ run : git fetch --unshallow
550+ working-directory : wrappers/realm-core/tools/vcpkg/ports
522551 - name : Build wrappers
523552 run : pwsh ./wrappers/build.ps1 WindowsStore -Platforms ${{ matrix.arch }} -Configuration Release -EnableLTO
524553 if : steps.check-cache.outputs.cache-hit != 'true'
@@ -528,4 +557,5 @@ jobs:
528557 name : wrappers-windows-uwp-${{ matrix.arch }}
529558 path : ${{ github.workspace }}/wrappers/build/**
530559 retention-days : 1
560+ if-no-files-found : error
531561 if : needs.check-cache.outputs.wrappers-windows-uwp-Win32 != 'true' || needs.check-cache.outputs.wrappers-windows-uwp-x64 != 'true' || needs.check-cache.outputs.wrappers-windows-uwp-ARM != 'true' || needs.check-cache.outputs.wrappers-windows-uwp-ARM64 != 'true'
0 commit comments