Skip to content

Commit

Permalink
Attempt to isolate vcpkg build to C drive.
Browse files Browse the repository at this point in the history
  • Loading branch information
abeltrano committed Dec 12, 2023
1 parent d51439c commit 67a08d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/build-with-host/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,16 @@ runs:
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
core.exportVariable('VCPKG_DEFAULT_BINARY_CACHE', 'C:/vcpkg/archive');
core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;x-gha');
- name: Install vcpkg dependencies with Github Actions Cache
working-directory: 'c:/'
if: ${{ inputs.vcpkg-binarycache == 'true' }}
run: |
echo "VCPKG_DEFAULT_BINARY_CACHE=${VCPKG_DEFAULT_BINARY_CACHE}" >> "${GITHUB_ENV}"
New-Item -Path ${env:VCPKG_DEFAULT_BINARY_CACHE} -ItemType Directory -Force
vcpkg install --binarysource="clear;default;x-gha,readwrite"
echo "VCPKG_BINARY_SOURCES=${VCPKG_BINARY_SOURCES}" >> "${GITHUB_ENV}"
shell: pwsh

- name: CMake Configure
Expand Down

0 comments on commit 67a08d1

Please sign in to comment.