Update another.yml #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Moja Flint with VCPKG | |
on: | |
push: | |
branches: [ workflow ] | |
pull_request: | |
branches: [ workflow ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Visual Studio 2022 | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: x64 | |
version: 16 # Use Visual Studio 2019 | |
- name: Install Dpendencies | |
shell: pwsh | |
run: | | |
pushd vcpkg | |
git clone https://github.com/microsoft/vcpkg.git | |
pushd .\vcpkg\ | |
.\bootstrap-vcpkg.bat | |
.\vcpkg install ` | |
boost-test:x64-windows ` | |
boost-program-options:x64-windows ` | |
boost-log:x64-windows ` | |
turtle:x64-windows ` | |
zipper:x64-windows ` | |
poco:x64-windows ` | |
libpq:x64-windows ` | |
gdal:x64-windows ` | |
sqlite3:x64-windows ` | |
boost-ublas:x64-windows | |
popd | |
# pushd Source | |
# vcpkg install | |
- name: Build with VCPKG | |
shell: pwsh | |
run: | | |
ls | |
mkdir Source\build | |
pushd Source\build | |
cmake --version | |
cmake -S .. -G "Visual Studio 16 2019" ` | |
-DCMAKE_INSTALL_PREFIX=/moja ` | |
-DVCPKG_TARGET_TRIPLET=x64-windows ` | |
-DENABLE_TESTS=OFF ` | |
-DCMAKE_TOOLCHAIN_FILE=..\vcpkg\scripts\buildsystems\vcpkg.cmake ` | |
.. |