From cd84759a9e9024706f37ac4b654b7b766a47ae87 Mon Sep 17 00:00:00 2001 From: SySyAli Date: Sat, 23 Dec 2023 03:10:20 -0500 Subject: [PATCH] Adding vcpkg and SQLite3 to the build.yml. --- .github/workflows/build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a7d5784..e6a8987 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,11 +17,19 @@ jobs: Start-Process msiexec.exe -Wait -ArgumentList '/i', $output, '/quiet', '/norestart' echo "C:\Program Files\CMake\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + - name: Install vcpkg and SQLite3 + run: | + git clone https://github.com/microsoft/vcpkg + .\vcpkg\bootstrap-vcpkg.bat + .\vcpkg\vcpkg install sqlite3:x64-windows + echo "VCPKG_ROOT=$env:GITHUB_WORKSPACE\vcpkg" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + echo "$env:GITHUB_WORKSPACE\vcpkg\installed\x64-windows\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + - name: Set up Visual Studio Environment uses: ilammy/msvc-dev-cmd@v1 - name: Configure CMake - run: cmake -S . -B build + run: cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=$env:GITHUB_WORKSPACE\vcpkg\scripts\buildsystems\vcpkg.cmake - name: Build run: cmake --build build