From 6c29b9e8a0bb2dd3719eb86fb328cfaad00f4f36 Mon Sep 17 00:00:00 2001 From: hzq Date: Mon, 1 Jan 2024 14:03:40 +0800 Subject: [PATCH] add vcpkg --- .github/workflows/vcpkg.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/vcpkg.yml b/.github/workflows/vcpkg.yml index 68646af9..d2ccef6c 100644 --- a/.github/workflows/vcpkg.yml +++ b/.github/workflows/vcpkg.yml @@ -47,6 +47,10 @@ jobs: - name: Install ninja-build tool uses: seanmiddleditch/gha-setup-ninja@v3 + - name: Enable Developer Command Prompt + uses: ilammy/msvc-dev-cmd@v1.12.0 + with: + arch: ${{ matrix.arch }} - name: List files in the repository run: | unzip asio.zip @@ -54,6 +58,6 @@ jobs: - run: echo "🍏 This job's status is ${{ job.status }}." - name: Build run: | - cmake . -B ${{github.workspace}} -DENABLE_WIN_VCPKG=ON -DENABLE_VCPKG=ON -DCMAKE_TOOLCHAIN_FILE=D:/a/paozhu/paozhu/vcpkg-2023.12.12/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_BUILD_TYPE=Debug -G Ninja + cmake . -B ${{github.workspace}} -DENABLE_WIN_VCPKG=ON -DENABLE_VCPKG=ON -DZLIB_INCLUDE_DIR=zlib -DZLIB_LIBRARY=zlib -DCMAKE_TOOLCHAIN_FILE=D:/a/paozhu/paozhu/vcpkg-2023.12.12/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_BUILD_TYPE=Debug -G Ninja - name: Build run: cmake --build ${{github.workspace}} --config Debug