Added Posix Demo run in github action (#997)

* Added demo runs for Posix GCC  in git action

---------

Co-authored-by: Joseph Julicher <jjulicher@mac.com>
pull/1005/head^2
xuelix 2 years ago committed by GitHub
parent 03db1e8e49
commit 637bde0183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,7 @@
name: FreeRTOS Demos name: FreeRTOS Demos
on: pull_request on:
push:
pull_request:
jobs: jobs:
WIN32-MSVC: WIN32-MSVC:
@ -66,10 +68,45 @@ jobs:
sudo apt-get -y update sudo apt-get -y update
sudo apt-get -y install build-essential sudo apt-get -y install build-essential
- name: Build Posix_GCC Demo - name: Build Posix_GCC Full Demo
id: build-posix-gcc-full-demo
shell: bash shell: bash
working-directory: FreeRTOS/Demo/Posix_GCC working-directory: FreeRTOS/Demo/Posix_GCC
run: make -j run: |
make -j
- name: Run and monitor Posix_GCC Full Demo
if: success() || failure() && steps.build-posix-gcc-full-demo.outcome == 'success'
working-directory: FreeRTOS/Demo/Posix_GCC
run: |
timeout 5m build/posix_demo | tee output.txt
if grep -q "OK: No errors" output.txt; then
echo -e "\nSUCCESS - Found SUCCESS string in output."
else
echo -e "\nFAILURE - SUCCESS string not found in output."
exit 1
fi
- name: Build Posix_GCC Blinky Demo
id: build-posix-gcc-blinky-demo
if: success() || failure()
shell: bash
working-directory: FreeRTOS/Demo/Posix_GCC
run: |
sed -i "s/#define[[:space:]]\+mainSELECTED_APPLICATION[[:space:]]\+FULL_DEMO/#define mainSELECTED_APPLICATION BLINKY_DEMO/g" main.c
make -j
- name: Run and monitor Posix_GCC Blinky Demo
if: success() || failure() && steps.build-posix-gcc-blinky-demo.outcome == 'success'
working-directory: FreeRTOS/Demo/Posix_GCC
run: |
timeout 30s build/posix_demo | tee output.txt
if grep -q "Message received from software timer" output.txt; then
echo -e "\nSUCCESS - Found SUCCESS string in output."
else
echo -e "\nFAILURE - SUCCESS string not found in output."
exit 1
fi
MSP430-GCC: MSP430-GCC:
name: GNU MSP430 Toolchain name: GNU MSP430 Toolchain

Loading…
Cancel
Save