-
Notifications
You must be signed in to change notification settings - Fork 2
91 lines (72 loc) · 2.3 KB
/
ci.yaml
File metadata and controls
91 lines (72 loc) · 2.3 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
on:
pull_request:
push:
branches:
- trunk
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install cargo and tools
uses: actions-rs/toolchain@v1
with:
toolchain: 1.63.0
components: rustfmt, clippy
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libsqlite3-dev libdbus-1-3 libssl-dev libgstreamer1.0-dev
- name: Run fmt
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all -- -D warnings -D clippy::semicolon-if-nothing-returned
test-linux:
name: test-linux
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: ["1.56.0", "1.63.0"]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install cargo and tools
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libsqlite3-dev libdbus-1-3 libssl-dev libgstreamer1.0-dev
- name: Run tests
run: cargo test --all
- name: Run fmt
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all -- -D warnings -D clippy::semicolon-if-nothing-returned
test-windows:
name: test-windows
runs-on: windows-latest
strategy:
matrix:
toolchain: ["1.56.0", "1.63.0"]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install cargo and tools
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- name: Install dependencies
shell: pwsh
run: |
choco install --yes gstreamer gstreamer-devel
choco install --yes pkgconfiglite --download-checksum 2038c49d23b5ca19e2218ca89f06df18fe6d870b4c6b54c0498548ef88771f6f --download-checksum-type sha256 --version 0.28
"C:\\gstreamer\\1.0\\msvc_x86_64\\bin" >> $env:GITHUB_PATH
- name: Run tests
run: cargo test --all
env:
PKG_CONFIG_PATH: C:\gstreamer\1.0\msvc_x86_64\lib\pkgconfig