-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
616aad9
commit 4efeece
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: C/C++ CI | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-2022 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install dependencies | ||
run: | | ||
choco install -y visualstudio2022community --package-parameters "--add Microsoft.VisualStudio.Component.VC.ATL --add Microsoft.VisualStudio.Component.Windows10SDK.20348 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64" | ||
choco install -y cmake git | ||
- name: Clone submodules | ||
run: | | ||
git submodule update --init --recursive | ||
- name: Configure build | ||
run: | | ||
cmake --preset windows-x64 | ||
- name: Build obs-studio | ||
run: | | ||
cmake --build --preset windows-x64 --config Release | ||
- name: Run tests | ||
run: | | ||
.\build_x64\rundir\Release\bin\64bit\obs64.exe --tests | ||
- name: Package distribution | ||
run: | | ||
cmake --build --preset windows-x64 --config Release --target package |