-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor examples structure * Fix lcov setting * Try to fix coverage issue
- Loading branch information
Showing
11 changed files
with
58 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Posix examples | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
ci: | ||
name: Build zephyr examples | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Build and run Posix examples | ||
run: | | ||
cd examples/posix | ||
./buildAll.sh | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# List of folders | ||
FOLDERS=("hello" "federated") | ||
|
||
# Iterate over each folder and execute the command | ||
for dir in "${FOLDERS[@]}"; do | ||
echo "Entering $dir" | ||
pushd $dir | ||
cmake -Bbuild | ||
make -C build | ||
popd | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
cmake_minimum_required(VERSION 3.20.0) | ||
project(reactor-uc-posix-hello) | ||
|
||
set(PLATFORM "POSIX" CACHE STRING "") | ||
set(NETWORK_POSIX_TCP ON CACHE STRING "") | ||
add_subdirectory(../../../ reactor-uc) | ||
|
||
add_executable(sender sender.c) | ||
target_link_libraries(sender PRIVATE reactor-uc) | ||
|
||
add_executable(receiver receiver.c) | ||
target_link_libraries(receiver PRIVATE reactor-uc) |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
cmake_minimum_required(VERSION 3.20.0) | ||
project(reactor-uc-posix-hello) | ||
|
||
set(PLATFORM "POSIX" CACHE STRING "Platform to target") | ||
add_subdirectory(../../../ reactor-uc) | ||
|
||
add_executable(app timer_ex.c) | ||
target_link_libraries(app PRIVATE reactor-uc) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters