File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 8585 shell : pwsh
8686
8787 - name : Restore vcpkg artifact
88+ id : restore-vcpkg
8889 uses : actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
8990 with :
9091 path : src\vcpkg_installed
@@ -94,13 +95,14 @@ jobs:
9495 run : |
9596 vcpkg install --vcpkg-root=%USERPROFILE%\scoop\apps\vcpkg\current
9697 working-directory : src
98+ if : ${{ ! steps.restore-vcpkg.outputs.cache-hit }}
9799
98100 - name : Save vcpkg artifact
99101 uses : actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
100102 with :
101103 path : src\vcpkg_installed
102104 key : windows-${{ matrix.os }}-vcpkg-${{ hashFiles('src/vcpkg.json') }}
103- if : ${{ github.ref_name == 'master' || startsWith(github.ref_name, 'ruby_') }}
105+ if : ${{ ! steps.restore-vcpkg.outputs.cache-hit && ( github.ref_name == 'master' || startsWith(github.ref_name, 'ruby_') ) }}
104106
105107 - name : setup env
106108 # Available Ruby versions: https://github.com/actions/runner-images/blob/main/images/windows/Windows2019-Readme.md#ruby
You can’t perform that action at this time.
0 commit comments