-
Notifications
You must be signed in to change notification settings - Fork 34
102 lines (75 loc) · 2.19 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Build OBS Plugins
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
cargo_fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: dtolnay/rust-toolchain@1.74.0
with:
components: rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
cargo_clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: dtolnay/rust-toolchain@1.74.0
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all --no-deps -- -D warnings
build_linux:
runs-on: ubuntu-latest
env:
DONT_USE_GENERATED_BINDINGS: "true"
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: dtolnay/rust-toolchain@1.74.0
- uses: Swatinem/rust-cache@v2
- run: |
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt-get remove libclang1-15
sudo apt-get update
sudo apt-get install obs-studio libxcb-randr0-dev libxcb-ewmh-dev
- run: cargo build --verbose --workspace
- run: cargo test --workspace
build_windows:
runs-on: windows-latest
env:
DONT_USE_GENERATED_BINDINGS: "true"
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: dtolnay/rust-toolchain@1.74.0
- uses: Swatinem/rust-cache@v2
- run: choco install obs-studio llvm
- run: cargo build --verbose --workspace --exclude scroll-focus-filter
- run: cargo test --workspace --exclude scroll-focus-filter
build_macos:
runs-on: macos-latest
env:
DONT_USE_GENERATED_BINDINGS: "true"
# if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: dtolnay/rust-toolchain@1.74.0
- uses: Swatinem/rust-cache@v2
- run: brew install --cask obs
- run: cargo build --verbose --workspace --exclude scroll-focus-filter
- run: cargo test --workspace --exclude scroll-focus-filter