mirror of
https://github.com/cmosher01/Epple-II.git
synced 2025-01-08 03:29:55 +00:00
use vcpkg for windows build
This commit is contained in:
parent
e513095e65
commit
d30e72fe70
22
.github/workflows/build.yaml
vendored
22
.github/workflows/build.yaml
vendored
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user