-
-
Notifications
You must be signed in to change notification settings - Fork 332
51 lines (49 loc) · 1.68 KB
/
aravis-linux.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
name: Aravis-Linux
on:
push:
branches: [ main, aravis-0-8 ]
pull_request:
branches: [ main, aravis-0-8 ]
release:
workflow_dispatch:
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
pip3 install meson ninja Markdown toml typogrify
sudo apt update
sudo apt install python3 libusb-1.0-0-dev gobject-introspection valgrind libgstreamer-plugins-bad1.0-dev libgtk-3-dev libgirepository1.0-dev python3-gi libunwind-dev gettext
- name: Build
run: |
meson --buildtype=plain -Ddocumentation=enabled -Dgst-plugin=enabled -Dintrospection=enabled -Dusb=disabled -Dviewer=enabled -Dgentl-producer=true . ./build
ninja -C ./build
meson configure -Dusb=enabled build
ninja -C ./build
env:
CC: gcc
- name: Tests
run: meson test -C build/ -v
- name: Valgrind
run: meson test -C build/ -v --setup=valgrind
- uses: actions/upload-artifact@v3
if: failure()
with:
name: Linux_Meson_Testlog
path: build/meson-logs/testlog*.txt
- name: Development Documentation
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/docs/reference/aravis/aravis-0.10
destination_dir: aravis-main
- name: Stable Documentation
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/aravis-0-8' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/docs/reference/aravis/aravis-0.8
destination_dir: aravis-stable