diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 7f040f3b..fe84bd16 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -71,14 +71,15 @@ jobs: - name: Install libpq run: | vcpkg install libpq[core]:x64-windows-static-release - echo "D:\Thirdparty\vcpkg\installed\x64-windows\bin" >> $GITHUB_PATH - echo "D:\Thirdparty\vcpkg\installed\x64-windows\lib" >> $GITHUB_PATH - echo "PQ_LIB_DIR=D:\Thirdparty\vcpkg\installed\x64-windows\lib" >> $GITHUB_ENV + echo "$VCPKG_INSTALLATION_ROOT\installed\x64-windows\bin" >> $GITHUB_PATH + echo "$VCPKG_INSTALLATION_ROOT\installed\x64-windows\lib" >> $GITHUB_PATH + echo "PQ_LIB_DIR=$VCPKG_INSTALLATION_ROOT\installed\x64-windows\lib" >> $GITHUB_ENV - name: Check run: | printenv - ls "D:\Thirdparty\vcpkg\installed\x64-windows\bin" - ls "D:\Thirdparty\vcpkg\installed\x64-windows\lib" + ls "$VCPKG_INSTALLATION_ROOT\installed\" + ls "$VCPKG_INSTALLATION_ROOT\installed\x64-windows\bin" + ls "$VCPKG_INSTALLATION_ROOT\installed\x64-windows\lib" - name: Build and test run: cargo test --locked --target x86_64-pc-windows-msvc