-
-
Notifications
You must be signed in to change notification settings - Fork 337
85 lines (80 loc) · 2.59 KB
/
aravis-msvc.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
name: Aravis-MSVC
on:
push:
branches: [ main, aravis-0-8 ]
pull_request:
branches: [ main, aravis-0-8 ]
workflow_dispatch:
jobs:
msvc:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
include:
- version: 16
arch: x86_64
build_type_conan: Release
build_type_meson: release
steps:
- name: pip
run: |
pip install "conan<2.0.0"
- name: disable-perl
run: |
rm -r C:\Strawberry\perl
- name: checkout
uses: actions/checkout@v3
- name: conan
env:
INPUT_CONANFILE: |
[requires]
libiconv/1.17
#gobject-introspection/1.69.0
gstreamer/1.22.3
#gst-plugins-base/1.22.3 Disable gstreamer for now, latest gst-plugins-base is 1.19.2
#gtk/4.4.0
libxml2/2.10.3
zlib/1.2.13
libusb/1.0.26
[build_requires]
meson/0.59.2
pkgconf/1.9.3
[generators]
pkg_config
virtualenv
virtualbuildenv
virtualrunenv
[options]
glib:shared=True
gstreamer:shared=True
gst-plugins-base:shared=True
run: |
$Env:INPUT_CONANFILE | Out-File -FilePath ${{ github.workspace }}\conanfile.txt -Encoding utf8
conan install -s os="Windows" -s compiler="Visual Studio" -s compiler.version=${{ matrix.version }} -s arch=${{ matrix.arch }} -s build_type=${{ matrix.build_type_conan }} -b pcre -b missing -b cascade -if build .
- name: meson
run: |
.\build\activate.ps1
.\build\activate_build.ps1
.\build\activate_run.ps1
echo "::group::configure"
meson setup --prefix ${{ github.workspace }}\install --buildtype ${{ matrix.build_type_meson }} --pkg-config-path ${{ github.workspace }}\build -Ddocumentation=disabled -Dgst-plugin=disabled -Dintrospection=disabled -Dusb=enabled -Dviewer=disabled -Dgv-n-buffers=1 -Dgentl-producer=true . .\build
echo "::endgroup::"
echo "::group::compile"
meson compile -C .\build -v
echo "::endgroup::"
echo "::group::install"
meson install -C .\build
echo "::endgroup::"
- name: test
run: |
.\build\activate.ps1
.\build\activate_build.ps1
.\build\activate_run.ps1
meson test -C .\build
- name: logs
uses: actions/upload-artifact@v3
if: failure()
with:
name: msvc_${{ matrix.version }}_${{ matrix.arch }}_${{ matrix.build_type_meson }}_Meson_Testlog
path: build/meson-logs/testlog.txt