mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-20 06:29:04 +03:00
workflow: Add in distribution and CMake checks
.github/workflows/main.yml: Do a 'make check' for matrix builds. Move documentation into separate job to reduce matrix build times Add in CMake job. Add in distribution job. Add in tinydtls job. Add in contiki/lwip job. scripts/github_dist.sh: Do the distribution checks using a script. examples/etsi_iot_01.c: examples/tiny.c: Fix include coap.h directory in old examples. README.md: Update status badges to get only the branch actions and remove CMake status badge.
This commit is contained in:
1 parent
b0e47d71d0
commit
dc6c5e6b00
5 files changed
+115
-10
No files matched your search
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#! /bin/sh
|
||||
|
||||
# This script creates a libcoap archive, unpacks it and does an
|
||||
# out-of-tree build and installation afterwards.
|
||||
#
|
||||
# Copyright (C) 2021 Olaf Bergmann <bergmann@tzi.org>
|
||||
#
|
||||
# This file is part of the CoAP C library libcoap. Please see README
|
||||
# and COPYING for terms of use.
|
||||
#
|
||||
|
||||
PREFIX=--prefix=`pwd`/libcoap-install
|
||||
ARCHIVE=`ls -1t libcoap-*.tar.bz2 |head -1`
|
||||
err=$?
|
||||
echo $ARCHIVE
|
||||
if test $err = 0 -a "x$ARCHIVE" != "x"; then
|
||||
DIR=`pwd`/`tar taf $ARCHIVE |cut -d/ -f1|head -1`
|
||||
tar xaf $ARCHIVE && cd $DIR && \
|
||||
$DIR/configure $PREFIX --enable-tests --enable-silent-rules --enable-documentation --enable-examples --disable-dtls && \
|
||||
make && make install
|
||||
err=$?
|
||||
fi
|
||||
|
||||
exit $err
|
||||
Reference in new issue
Block a user