diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2022-01-22 12:02:00 +0100 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2022-01-23 15:41:05 +0100 |
commit | 919671c89bb9c875bdf5cdcc31e9f3e1b4214a10 (patch) | |
tree | bcde921b42ec3f1ae06303eaeae8a74957390939 /.github | |
parent | bd5aec38d1ef2320b41d8f5404bbfaf80444936b (diff) | |
download | libgphoto2-919671c89bb9c875bdf5cdcc31e9f3e1b4214a10.tar.gz |
CI: build automake based example project
Add automake based example project using libgphoto2 to have
the CI builds ensure that building a libgphoto2 frontend
with this libgphoto2 is possible.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ccpp.yml | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 86849e911..5f7f90ab6 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -18,10 +18,27 @@ jobs: - name: autoreconf run: autoreconf -i -f - name: configure - run: ./configure + run: ./configure --prefix=$PWD/__prefix - name: make run: make - name: make check run: make check - name: make distcheck run: make distcheck + - name: make install + run: make install + - name: build and run example libgphoto2 frontend (ambs-lgp2-frontend) + run: | + set -x + 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 |