Skip to content

Commit 6549dcb

Browse files
committed
try LIB and INCLUDE env var
1 parent 292ce23 commit 6549dcb

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/c-cpp.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ permissions: read-all
1111
jobs:
1212
build-windows-msvc:
1313
runs-on: windows-latest
14-
env:
15-
PKG_CONFIG: ${{ github.workspace }}/vcpkg/installed/x64-windows/tools/pkgconf/pkgconf.exe
16-
PKG_CONFIG_PATH: ${{ github.workspace }}/vcpkg/installed/x64-windows/lib/pkgconfig
1714

1815
steps:
1916
- uses: actions/checkout@v4
@@ -36,6 +33,14 @@ jobs:
3633
python -m pip install --upgrade pip
3734
pip install meson ninja
3835
36+
- name: Setup environment
37+
run: |
38+
echo "PKG_CONFIG=${{ github.workspace }}/vcpkg/installed/x64-windows/tools/pkgconf/pkgconf.exe" >> $env:GITHUB_ENV
39+
echo "PKG_CONFIG_PATH=${{ github.workspace }}/vcpkg/installed/x64-windows/lib/pkgconfig" >> $env:GITHUB_ENV
40+
echo "LIB=${{ github.workspace }}/vcpkg/installed/x64-windows/lib;$env:LIB" >> $env:GITHUB_ENV
41+
echo "INCLUDE=${{ github.workspace }}/vcpkg/installed/x64-windows/include;$env:INCLUDE" >> $env:GITHUB_ENV
42+
shell: pwsh
43+
3944
- name: Setup vcpkg and install pkg-config and gtest
4045
run: |
4146
git clone https://github.com/Microsoft/vcpkg.git

0 commit comments

Comments
 (0)