blob: bf444a761004be39f9df3071870cbefa013fa27b (
plain)
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
|
name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
LC_ALL: C
COMMON_CONFIGURE_FLAGS: >-
--disable-silent-rules
--enable-vusb
--with-camlibs=everything
SLEEP=no
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'Determine number of cores to build on'
run: echo NPROC=$(nproc) >> $GITHUB_ENV
# Setting MAKE interferes with Makefile{,.in,.am} using $(MAKE) internally
- name: 'Prepare concurrent make'
run: if test "x$NPROC" = x; then echo ci_MAKE="make" >> $GITHUB_ENV; echo "NPROC must be set"; exit 1; else echo ci_MAKE="make -j${NPROC} -l${NPROC}" >> $GITHUB_ENV; fi
- name: 'apt-get update'
run: sudo apt-get update
- name: 'apt-get 3rd party repo libgd-dev dependency workaround'
run: sudo apt-get remove nginx libgd3
- name: 'apt-get install'
run: sudo apt-get install -y autopoint gettext libusb-1.0-0-dev libcurl4-openssl-dev libgd-dev
- name: 'autoreconf'
run: autoreconf -i -f
- name: 'configure'
run: ./configure ${COMMON_CONFIGURE_FLAGS} --prefix=$PWD/__prefix
- name: 'make'
run: set -x; ${ci_MAKE}
- name: 'make check'
run: set -x; ${ci_MAKE} check
- name: 'make distcheck'
run: set -x; ${ci_MAKE} DISTCHECK_CONFIGURE_FLAGS="${COMMON_CONFIGURE_FLAGS}" distcheck
- name: 'make install'
run: set -x; ${ci_MAKE} install
- name: 'make installcheck'
run: set -x; ${ci_MAKE} installcheck
- name: 'build and run example libgphoto2 frontend (ambs-lgp2-frontend)'
run: |
set -x
exec 2>&1
abs_top_builddir="$PWD"
export PKG_CONFIG_PATH="${abs_top_builddir}/__prefix/lib/pkgconfig"
export LD_LIBRARY_PATH="${abs_top_builddir}/__prefix/lib"
cd examples/ambs-lgp2-frontend
autoreconf -vis
./configure --prefix="$PWD/__pref"
make
ldd ambs-lgp2-frontend
./ambs-lgp2-frontend
make install
ldd __pref/bin/ambs-lgp2-frontend
__pref/bin/ambs-lgp2-frontend
|