From 49b59ab464d7a1d45f6cb1441a8abf770070e755 Mon Sep 17 00:00:00 2001 From: tangowithfoxtrot <5676771+tangowithfoxtrot@users.noreply.github.com> Date: Wed, 18 Sep 2024 11:21:19 -0700 Subject: [PATCH] fix: pwsh var interpolation not working; use bash --- .github/workflows/build-cpp.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-cpp.yml b/.github/workflows/build-cpp.yml index aff900991..182fcad27 100644 --- a/.github/workflows/build-cpp.yml +++ b/.github/workflows/build-cpp.yml @@ -160,19 +160,15 @@ jobs: - name: Build windows if: runner.os == 'Windows' working-directory: languages/cpp - env: - BOOST_INCLUDE_DIR: C:\msys64\mingw64\include\boost - NLOHMANN_JSON_INCLUDE_DIR: C:\msys64\mingw64\include\nlohmann - TARGET: include/bitwarden_c.dll run: | mkdir build cd build - $DNLOHMANN_PATH="C:\msys64\mingw64\include\nlohmann" - $DBOOST_PATH="C:\msys64\mingw64\include\boost" - $DTARGET="include/bitwarden_c.dll" + export DNLOHMANN_PATH="C:\msys64\mingw64\include\nlohmann" + export DBOOST_PATH="C:\msys64\mingw64\include\boost" + export DTARGET="include/bitwarden_c.dll" cmake .. -DNLOHMANN=$DNLOHMANN_PATH -DBOOST=$DBOOST_PATH -DTARGET=$DTARGET -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/languages/cpp/ -DBUILD_TESTING=OFF cmake --build . - shell: pwsh + shell: bash - name: Copy artifacts working-directory: languages/cpp/build