.github: build: install to fixed dir for pkg-config

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg 2021-07-26 23:43:01 +02:00
parent 5163b76290
commit 5d7c1e18d6

View File

@ -32,24 +32,24 @@ jobs:
- name: Configure
run: |
./autogen.sh
./configure --prefix=
./configure --prefix=/tmp
- name: Build
run: |
make V=1
- name: Install
run: |
make V=1 DESTDIR=~/tmp install-strip
tree ~/tmp
ldd ~/tmp/sbin/syslogd
size ~/tmp/sbin/syslogd
~/tmp/sbin/syslogd -?
- name: Example w/ libsyslog
make V=1 install-strip
tree /tmp
ldd /tmp/sbin/syslogd
size /tmp/sbin/syslogd
/tmp/sbin/syslogd -?
- name: Example
run: |
mkdir -p ~/tmp/example
cp -a example/example.* ~/tmp/example/
pushd ~/tmp/example/
PKG_CONFIG_LIBDIR=~/tmp/lib/pkgconfig make -f example.mk
mkdir -p /tmp/example
cp -a example/example.* /tmp/example/
pushd /tmp/example/
PKG_CONFIG_LIBDIR=/tmp/lib/pkgconfig make -f example.mk
popd
- name: Unit tests
- name: Test
run: |
sudo make check || (cat test/start.log; cat test/remote.log; false)