use vcpkg for windows build

This commit is contained in:
Christopher A. Mosher 2022-11-01 23:40:46 -04:00
parent e513095e65
commit d30e72fe70

View File

@ -84,18 +84,20 @@ jobs:
"build-epple2-windows": "build-epple2-windows":
runs-on: "windows-latest" runs-on: "windows-latest"
steps: steps:
# - name: "Prepare runner"
# run: |
# set -x
- uses: "actions/checkout@v3" - uses: "actions/checkout@v3"
- name: "Set up vcpkg and install dependencies"
# TODO use https://github.com/lukka/CppCMakeVcpkgTemplate instead of this
run: |
git clone https://github.com/Microsoft/vcpkg.git
./vcpkg/bootstrap-vcpkg.sh -disableMetrics
./vcpkg/vcpkg install sdl2[core,wayland]
- name: "Build" - name: "Build"
run: | run: |
mkdir build mkdir build
cd build cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake
cmake .. cmake --build build
cmake --build . dir build/src
Get-ChildItem -Path "src" dir -Path build/conf
Get-ChildItem -Path "conf" cat build/conf/epple2.a2ploaded.conf
cat conf/epple2.a2ploaded.conf