Skip to content

Commit

Permalink
ci(win): use export
Browse files Browse the repository at this point in the history
close #285
  • Loading branch information
hyoklee committed Jan 17, 2025
1 parent 1a57337 commit b9d65d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main-cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ jobs:
echo "CXX=cl.exe" >> $GITHUB_ENV
echo "CC=cl.exe" >> $GITHUB_ENV
vcpkg install curl[openssl]
echo "CMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake" >> $GITHUB_ENV
if: matrix.os == 'windows-latest'

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand All @@ -165,6 +164,9 @@ jobs:
# CMAKE CONFIGURE
- name: CMake Configure
run: |
if [[ "$OS" == "Windows_NT" ]]; then
export CMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake"
fi
mkdir "${{ runner.workspace }}/build"
cd "${{ runner.workspace }}/build"
cmake -C $GITHUB_WORKSPACE/config/cmake/cacheinit.cmake \
Expand Down

0 comments on commit b9d65d2

Please sign in to comment.