Update build.yml #44
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: 17 # Use Visual Studio 2022 | |
- name: Install VCPKG if not already installed | |
shell: pwsh | |
run: | | |
pushd vcpkg | |
git clone https://github.com/microsoft/vcpkg.git | |
pushd vcpkg | |
.\bootstrap-vcpkg.bat | |
popd | |
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 17 2022" -DCMAKE_INSTALL_PREFIX=bin -DVCPKG_TARGET_TRIPLET=moja-x64-windows -DVCPKG_INSTALL_OPTIONS="--x-abi-tools-use-exact-versions" -DCMAKE_TOOLCHAIN_FILE=../../vcpkg/scripts/buildsystems/vcpkg.cmake -DENABLE_TESTS:BOOL=ON -DENABLE_MOJA_MODULES_ZIPPER:BOOL=ON -DENABLE_MOJA_MODULES_GDAL:BOOL=ON -DENABLE_MOJA_MODULES_LIBPQ:BOOL=ON -DENABLE_MOJA_MODULES_POCO:BOOL=ON | |