Skip to content

Commit

Permalink
Adding vcpkg and SQLite3 to the build.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
SySyAli committed Dec 23, 2023
1 parent 8220604 commit cd84759
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd84759

Please sign in to comment.