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 a6930ff commit 35a0230
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,8 @@ runs:
if: inputs.github-binarycache != 'true' && inputs.github-binarycache != true
uses: actions/github-script@v6
with:
script: |
if (process.platform == 'win32') {
core.exportVariable('VCPKG_DEFAULT_BINARY_CACHE', "${{ github.workspace }}\\\\vcpkg_cache");
} else {
script: |
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 35a0230

Please sign in to comment.