This repository was archived by the owner on Feb 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
70 lines (70 loc) · 2 KB
/
Copy pathbuild.yml
File metadata and controls
70 lines (70 loc) · 2 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: build
on: push
jobs:
build_win:
name: build on Windows
runs-on: windows-2022
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache OBS-Studio deps
uses: actions/cache@v3
env:
cache-name: obs
with:
path: deps/obs-studio
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('scripts/build_obs.bat') }}
- name: build
run: .\scripts\build_win.bat
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: windows-archive
path: build*/obs-virtualbg-*.zip
build_mac:
name: build on Mac
runs-on: macos-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache ONNX Runtime
uses: actions/cache@v3
env:
cache-name: onnxruntime
with:
path: deps/onnxruntime
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('scripts/build_onnxruntime_mac.sh') }}
- name: build ONNX Runtime
run: ./scripts/build_onnxruntime_mac.sh
- name: install deps
run: ./scripts/install_deps_mac.sh
- name: build
run: ./scripts/build_mac.sh
# - name: Upload artifacts
# uses: actions/upload-artifact@v3
# with:
# name: mac-archive
# path: build/obs-virtualbg-*.zip
build_linux:
name: build on Linux
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: install pkgs
run: mkdir deps && sudo ./scripts/install_pkgs_linux.sh
- name: install deps
run: ./scripts/install_deps_linux.sh
- name: build
run: ./scripts/build_linux.sh
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ubuntu-20.04-archive
path: build/obs-virtualbg-*.deb