diff --git a/action.yml b/action.yml index cd78ed5..b0449ca 100644 --- a/action.yml +++ b/action.yml @@ -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