Skip to content

Commit

Permalink
Merge pull request #70 from microsoft/fixwindowsbuildnospc
Browse files Browse the repository at this point in the history
Clean vcpkg downloads and buildtrees after building each package for Windows build
  • Loading branch information
abeltrano authored Dec 12, 2023
2 parents 911d31f + 9b6f3b4 commit 92a74d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/actions/build-with-host/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ inputs:
required: false
default: 'true'
description: 'Use the vcpkg binary cache'

runs:
using: 'composite'
steps:
Expand All @@ -40,10 +41,15 @@ runs:
script: |
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,readwrite');
- name: Install vcpkg dependencies with Github Actions Cache
if: ${{ inputs.vcpkg-binarycache == 'true' }}
run: vcpkg install --binarysource="clear;x-gha,readwrite"
run: |
echo "VCPKG_DEFAULT_BINARY_CACHE=${VCPKG_DEFAULT_BINARY_CACHE}" >> "${GITHUB_ENV}"
echo "VCPKG_BINARY_SOURCES=${VCPKG_BINARY_SOURCES}" >> "${GITHUB_ENV}"
New-Item -Path ${env:VCPKG_DEFAULT_BINARY_CACHE} -ItemType Directory -Force
shell: pwsh

- name: CMake Configure
Expand Down

0 comments on commit 92a74d3

Please sign in to comment.