mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-07 13:45:00 -05:00
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>
This commit is contained in:
parent
03db1e8e49
commit
637bde0183
1 changed files with 40 additions and 3 deletions
43
.github/workflows/freertos_demos.yml
vendored
43
.github/workflows/freertos_demos.yml
vendored
|
|
@ -1,5 +1,7 @@
|
|||
name: FreeRTOS Demos
|
||||
on: pull_request
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
WIN32-MSVC:
|
||||
|
|
@ -66,10 +68,45 @@ jobs:
|
|||
sudo apt-get -y update
|
||||
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
|
||||
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:
|
||||
name: GNU MSP430 Toolchain
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue