From 4fb198e4f67b7851f1716e16cbddbefd84c84626 Mon Sep 17 00:00:00 2001 From: Vo Van Nghia Date: Mon, 22 Jan 2024 23:14:06 +0700 Subject: [PATCH] export path --- .github/workflows/main.yaml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 721cdd74..118cbcb2 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -69,19 +69,12 @@ jobs: core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - name: Install libpq - run: | - vcpkg install libpq[core]:x64-windows-static-release - echo "$VCPKG_INSTALLATION_ROOT\installed\x64-windows-static-release\bin" >> $GITHUB_PATH - echo "$VCPKG_INSTALLATION_ROOT\installed\x64-windows-static-release\lib" >> $GITHUB_PATH - echo "PQ_LIB_DIR=$VCPKG_INSTALLATION_ROOT\installed\x64-windows-static-release\lib" >> $GITHUB_ENV - - name: Check - run: | - printenv - ls "C:\vcpkg\installed\" - ls "C:\vcpkg\installed\x64-windows-static-release\" - ls "C:\vcpkg\installed\x64-windows-static-release\lib" + run: vcpkg install libpq[core]:x64-windows-static-release - name: Build and test - run: cargo test --locked --target x86_64-pc-windows-msvc + run: | + export PATH=$VCPKG_INSTALLATION_ROOT\installed\x64-windows-static-release\lib:$PATH + export PQ_LIB_DIR=$VCPKG_INSTALLATION_ROOT\installed\x64-windows-static-release\lib + cargo test --locked --target x86_64-pc-windows-msvc build-macos: runs-on: macos-latest