.github: no need to run test with sudo, we use unshare now
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
parent
aad76ad03b
commit
22bfd79d8d
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@ -24,12 +24,12 @@ jobs:
|
|||||||
MAKEFLAGS: -j3
|
MAKEFLAGS: -j3
|
||||||
CC: ${{ matrix.compiler }}
|
CC: ${{ matrix.compiler }}
|
||||||
steps:
|
steps:
|
||||||
- name: Install build dependencies ...
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get -y update
|
sudo apt-get -y update
|
||||||
sudo apt-get -y install tree tshark
|
sudo apt-get -y install tree tshark
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Configure
|
- name: Configure & Build
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
@ -37,23 +37,21 @@ jobs:
|
|||||||
cd build/dir
|
cd build/dir
|
||||||
../../configure --prefix= --with-systemd=/tmp/lib/systemd/system
|
../../configure --prefix= --with-systemd=/tmp/lib/systemd/system
|
||||||
chmod -R a+w .
|
chmod -R a+w .
|
||||||
- name: Build
|
make
|
||||||
run: |
|
- name: Install Check
|
||||||
make V=1
|
|
||||||
- name: Install
|
|
||||||
run: |
|
run: |
|
||||||
DESTDIR=/tmp make V=1 install-strip
|
DESTDIR=/tmp make V=1 install-strip
|
||||||
tree /tmp
|
tree /tmp
|
||||||
ldd /tmp/sbin/syslogd
|
ldd /tmp/sbin/syslogd
|
||||||
size /tmp/sbin/syslogd
|
size /tmp/sbin/syslogd
|
||||||
/tmp/sbin/syslogd -?
|
/tmp/sbin/syslogd -?
|
||||||
- name: Example
|
- name: Build Example
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /tmp/example
|
mkdir -p /tmp/example
|
||||||
cp -a example/example.* /tmp/example/
|
cp -a example/example.* /tmp/example/
|
||||||
pushd /tmp/example/
|
pushd /tmp/example/
|
||||||
PKG_CONFIG_LIBDIR=/tmp/lib/pkgconfig make -f example.mk
|
PKG_CONFIG_LIBDIR=/tmp/lib/pkgconfig make -f example.mk
|
||||||
popd
|
popd
|
||||||
- name: Test
|
- name: Run Tests
|
||||||
run: |
|
run: |
|
||||||
sudo make check || (cat test/start.log; cat test/remote.log; false)
|
make check || (cat test/test-suite.log; false)
|
||||||
|
Loading…
Reference in New Issue
Block a user