stremio-community-v5/.github/workflows/build.yml
2026-01-03 19:24:18 +00:00

39 lines
1,011 B
YAML

name: Windows Build
on:
push:
branches: [ "master", "main", "webview-windows" ]
pull_request:
branches: [ "master", "main", "webview-windows" ]
jobs:
build:
runs-on: windows-latest
env:
VCPKG_ROOT: 'C:\vcpkg'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Vcpkg
run: |
cd $env:VCPKG_ROOT
git pull
.\bootstrap-vcpkg.bat
- name: Install Dependencies via Vcpkg
run: |
$packages = "openssl:x64-windows-static", "nlohmann-json:x64-windows-static", "webview2:x64-windows-static", "curl:x64-windows-static"
vcpkg install $packages
- name: Configure CMake
run: |
cmake -S . -B out -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_ROOT\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static
- name: Build
run: |
cmake --build out --config Release --parallel