-
Notifications
You must be signed in to change notification settings - Fork 36
55 lines (42 loc) · 1.23 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
---
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt update
sudo apt install libmpv-dev libglib2.0-dev libavformat-dev meson ninja-build
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
mkdir build
meson setup build
ninja -C build
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: mpris.so
path: build/libmpris.so
if-no-files-found: error
- name: Prepare for test
run: |
sudo apt install mpv playerctl sound-theme-freedesktop bash dbus xvfb xauth jq socat gawk
- name: Run tests
run: |
ninja -C build test
- name: Check git files unmodified
run: |
git diff --exit-code HEAD
- name: Check .gitignore matches generated files
run: |
! git ls-files --others --exclude-standard | grep .
- name: Cleanup generated files
run: |
ninja -C build clean
- name: Check cleanup removed generated files
run: |
! git ls-files --others | grep . | grep -v build/