-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.08 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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: Create build directory
run: |
mkdir build_x64
- name: Configure build
run: |
cd build_x64
cmake .. -G "Visual Studio 17 2022" -A x64
- name: Build obs-studio
run: |
cd build_x64
cmake --build . --config Release
- name: Run tests
run: |
cd build_x64
.\rundir\Release\bin\64bit\obs64.exe --tests
- name: Package distribution
run: |
cd build_x64
cmake --build . --config Release --target package