Skip to content

Commit

Permalink
Add github-binarycache option to use built in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwason committed Jan 18, 2024
1 parent b9b534e commit d708206
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ runs:
uses: actions/github-script@v6
with:
script: |
core.exportVariable('VCPKG_DEFAULT_BINARY_CACHE', "${{ github.workspace }}/vcpkg_cache");
if (process.platform == 'win32') {
core.exportVariable('VCPKG_DEFAULT_BINARY_CACHE', "${{ github.workspace }}\\vcpkg_cache");
} else {
core.exportVariable('VCPKG_DEFAULT_BINARY_CACHE', "${{ github.workspace }}/vcpkg_cache");
}
- name: vcpkg-dry-run-win
if: runner.os == 'Windows' && inputs.manifest-dir == '' && inputs.github-binarycache != 'true' && inputs.github-binarycache != true
working-directory: ${{ github.workspace }}\vcpkg
Expand Down

0 comments on commit d708206

Please sign in to comment.