mirror of
https://github.com/thinkonmay/sunshine-sdk.git
synced 2025-12-25 22:18:46 +00:00
76 lines
1.8 KiB
YAML
76 lines
1.8 KiB
YAML
---
|
|
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
github_env:
|
|
name: GitHub Env Debug
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Dump github context
|
|
run: echo "$GITHUB_CONTEXT"
|
|
shell: bash
|
|
env:
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
|
|
build_win:
|
|
name: Windows
|
|
runs-on: windows-2025
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Setup Dependencies Windows
|
|
uses: msys2/setup-msys2@v2
|
|
with:
|
|
msystem: mingw64
|
|
update: true
|
|
install: >-
|
|
wget
|
|
|
|
- name: Update Windows dependencies
|
|
shell: msys2 {0}
|
|
run: |
|
|
# download working curl
|
|
wget https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-curl-8.8.0-1-any.pkg.tar.zst
|
|
|
|
# install dependencies
|
|
pacman -U --noconfirm mingw-w64-x86_64-curl-8.8.0-1-any.pkg.tar.zst
|
|
pacman -Syu --noconfirm \
|
|
--ignore=mingw-w64-x86_64-curl \
|
|
git \
|
|
mingw-w64-x86_64-boost \
|
|
mingw-w64-x86_64-cmake \
|
|
mingw-w64-x86_64-cppwinrt \
|
|
mingw-w64-x86_64-graphviz \
|
|
mingw-w64-x86_64-miniupnpc \
|
|
mingw-w64-x86_64-nlohmann-json \
|
|
mingw-w64-x86_64-nodejs \
|
|
mingw-w64-x86_64-nsis \
|
|
mingw-w64-x86_64-onevpl \
|
|
mingw-w64-x86_64-openssl \
|
|
mingw-w64-x86_64-opus \
|
|
mingw-w64-x86_64-toolchain
|
|
|
|
- name: Build Windows
|
|
shell: msys2 {0}
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-G "Ninja" \
|
|
..
|
|
ninja |