mirror of
https://github.com/Zaarrg/stremio-community-v5.git
synced 2026-05-11 04:30:49 +00:00
39 lines
1,011 B
YAML
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
|