Skip to content

Commit 080ebfd

Browse files
committed
-
1 parent 20ce8da commit 080ebfd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/actions/vcpkg-cache/action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,23 @@ inputs:
44
description: 'Path where to install vcpkg'
55
required: true
66
type: string
7+
env:
8+
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
79
runs:
810
using: "composite"
911
steps:
1012
- name: Install vcpkg
11-
shell: pwsh
13+
shell: bash
1214
run: |
1315
echo "Installing vcpkg"
1416
15-
VCPKG_DIR=${{ inputs.vcpkg-root-path }}
17+
VCPKG_DIR=${{ env.VCPKG_ROOT }}
1618
echo "before VCPKG_DIR=$VCPKG_DIR"
1719
VCPKG_DIR="${VCPKG_DIR//\\//}" # Convert backslashes to forward slashes for compatibility
1820
echo "after VCPKG_DIR=$VCPKG_DIR"
1921
2022
echo "VCPKG_INSTALLATION_ROOT=$VCPKG_DIR" >> $GITHUB_ENV
21-
echo "PATH=$VCPKG_DIR;$PATH" >> $GITHUB_ENV
23+
echo "PATH=$VCPKG_DIR:$PATH" >> $GITHUB_ENV
2224
echo "VCPKG_DEFAULT_BINARY_CACHE=$VCPKG_DIR/.cache" >> $GITHUB_ENV
2325
which vcpkg
2426

0 commit comments

Comments
 (0)