mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-07-30 17:22:28 +08:00
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:
.github
FreeRTOS/Demo/Posix_GCC
24
.github/scripts/posix_build_checker.sh
vendored
Normal file
24
.github/scripts/posix_build_checker.sh
vendored
Normal 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
|
||||
|
24
.github/scripts/posix_network_build_checker.sh
vendored
Normal file
24
.github/scripts/posix_network_build_checker.sh
vendored
Normal 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
|
19
.github/workflows/core-checks.yml
vendored
19
.github/workflows/core-checks.yml
vendored
@ -43,4 +43,23 @@ jobs:
|
||||
export PYTHONPATH=tools/.github/scripts:${PYTHONPATH}
|
||||
.github/scripts/core_checker.py --json ${HOME}/files_modified.json ${HOME}/files_added.json ${HOME}/files_renamed.json
|
||||
exit $?
|
||||
build-checker:
|
||||
name: FreeRTOS Posix Build Check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clone This Repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: ./workspace
|
||||
submodules: 'recursive'
|
||||
fetch-depth: 1
|
||||
- name: Posix Build Checker
|
||||
run: |
|
||||
bash workspace/.github/scripts/posix_build_checker.sh workspace
|
||||
- name: Install lib pcap dev
|
||||
run: |
|
||||
sudo apt-get install libpcap-dev
|
||||
- name: Posix Network Build Checker
|
||||
run: |
|
||||
bash workspace/.github/scripts/posix_network_build_checker.sh workspace
|
||||
|
||||
|
@ -59,7 +59,7 @@ SOURCE_FILES += ${FREERTOS_PLUS_DIR}/Source/FreeRTOS-Plus-Trace/streamports/File
|
||||
|
||||
|
||||
CFLAGS := -ggdb3 -O0 -DprojCOVERAGE_TEST=0 -D_WINDOWS_
|
||||
LDFLAGS := -ggdb3 -O0 -pthread -lpcap
|
||||
LDFLAGS := -ggdb3 -O0 -pthread
|
||||
|
||||
OBJ_FILES = $(SOURCE_FILES:%.c=$(BUILD_DIR)/%.o)
|
||||
|
||||
|
Reference in New Issue
Block a user