-
-
Notifications
You must be signed in to change notification settings - Fork 333
63 lines (60 loc) · 1.96 KB
/
aravis-mingw.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
# MSYS2 setup with actions is described here:
# https://github.com/marketplace/actions/setup-msys2
name: Aravis-MinGW
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
mingw:
runs-on: windows-latest
strategy:
fail-fast: false # see all failures, not just the first one
matrix:
include:
- { sys: mingw64, env: x86_64 }
- { sys: mingw32, env: i686 }
- { sys: ucrt64, env: ucrt-x86_64 }
# - { sys: clang64, env: clang-x86_64 } # clang64 is missing several packages, disabled for now
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
release: true
path-type: minimal
update: false
install: >-
mingw-w64-${{matrix.env}}-toolchain
mingw-w64-${{matrix.env}}-gcc
mingw-w64-${{matrix.env}}-gobject-introspection
mingw-w64-${{matrix.env}}-meson
mingw-w64-${{matrix.env}}-gst-plugins-good
mingw-w64-${{matrix.env}}-gst-plugins-bad
mingw-w64-${{matrix.env}}-gstreamer
mingw-w64-${{matrix.env}}-gtk3
mingw-w64-${{matrix.env}}-libxml2
mingw-w64-${{matrix.env}}-zlib
mingw-w64-${{matrix.env}}-libusb
mingw-w64-${{matrix.env}}-gobject-introspection-runtime
mingw-w64-${{matrix.env}}-python-gobject
- uses: actions/checkout@v3
- name: meson
run: |
mkdir build
meson --buildtype=plain -Ddocumentation=disabled -Dgst-plugin=enabled -Dintrospection=enabled -Dusb=enabled -Dviewer=enabled -Dgv-n-buffers=1 . ./build
- name: ninja install
run: |
ninja -C ./build --verbose install
- name: meson test
run: |
meson test -C ./build
- uses: actions/upload-artifact@v3
if: failure()
with:
name: ${{matrix.sys}}_Meson_Testlog
path: build/meson-logs/testlog.txt