Add Posix build checker to git actions (#489)

* Add Posix build checker to git actions

* fix checker path

* Fix script, checkout recursively

* fix build check script return value

* clone submodules as well with posix checker

* Add quotes to true for submodules

* Fix Submodules

* Remove pcap dependency from Makefile

* install libpcap for build check

* Add networking build to posix

* Separate network build from normal build

* add libpcap after building normal posix
This commit is contained in:
alfred gedeon 2021-01-12 20:13:29 -08:00 committed by GitHub
parent 36fd2c8d8c
commit 47d37354bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 68 additions and 1 deletions

24
.github/scripts/posix_build_checker.sh vendored Normal file
View file

@ -0,0 +1,24 @@
PROJECT=$1
echo "Verifying url links of: ${PROJECT}"
if [ ! -d "$PROJECT" ]
then
echo "Directory passed does not exist"
exit 2
fi
SCRIPT_RET=0
set -o nounset # Treat unset variables as an error
cd ${PROJECT}/FreeRTOS/Demo/Posix_GCC
make
SCRIPT_RET=$?
if [ "${SCRIPT_RET}" -eq 0 ]
then
exit 0
else
exit 1
fi

View file

@ -0,0 +1,24 @@
PROJECT=$1
echo "Verifying url links of: ${PROJECT}"
if [ ! -d "$PROJECT" ]
then
echo "Directory passed does not exist"
exit 2
fi
SCRIPT_RET=0
set -o nounset # Treat unset variables as an error
cd ${PROJECT}/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Posix
make
SCRIPT_RET=$?
if [ "${SCRIPT_RET}" -eq 0 ]
then
exit 0
else
exit 1
fi