Skip to content

Commit da99457

Browse files
committed
Update workflows
1 parent 415857f commit da99457

File tree

6 files changed

+89
-2
lines changed

6 files changed

+89
-2
lines changed

.github/workflows/cmake_clang.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Clang
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Trigger on push to 'main' branch
7+
pull_request:
8+
branches:
9+
- main # Trigger on pull request targeting 'main' branch
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest # Use Ubuntu environment for the build
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2 # Checkout the repository code
18+
19+
- name: Configure CMake with Clang
20+
run: cmake -S . -B Build -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ # Configure CMake with Clang as the compiler
21+
22+
- name: Build
23+
run: cmake --build Build # Build the project using CMake
24+
25+
- name: Run DelegateApp
26+
run: ./Build/DelegateApp # Run the built executable

.github/workflows/cmake_ubuntu.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Ubuntu
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Trigger on push to 'main' branch
7+
pull_request:
8+
branches:
9+
- main # Trigger on pull request targeting 'main' branch
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest # Use Ubuntu environment for the build
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2 # Checkout the repository code
18+
19+
- name: Configure CMake
20+
run: cmake -S . -B Build # Configure CMake to generate build files in 'Build' directory
21+
22+
- name: Build
23+
run: cmake --build Build # Build the project using CMake
24+
25+
- name: Run DelegateApp
26+
run: ./Build/DelegateApp # Run the built executable
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Windows
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Trigger on push to 'main' branch
7+
pull_request:
8+
branches:
9+
- main # Trigger on pull request targeting 'main' branch
10+
11+
jobs:
12+
build:
13+
runs-on: windows-latest # Use Windows environment for the build
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2 # Checkout the repository code
18+
19+
- name: Set up Visual Studio
20+
uses: microsoft/setup-msbuild@v1.1 # Set up Visual Studio environment (MSBuild)
21+
22+
- name: Configure CMake
23+
run: cmake -S . -B Build -G "Visual Studio 17 2022" # Configure CMake for Visual Studio
24+
25+
- name: Build
26+
run: cmake --build Build --config Release # Build the project using CMake with Release configuration
27+
28+
- name: Run DelegateApp
29+
run: .\Build\Release\DelegateApp.exe # Run the built executable (adjust path for MSBuild)

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*.userprefs
1414

1515
# Build results
16+
Build
1617
[Dd]ebug/
1718
[Dd]ebugPublic/
1819
[Rr]elease/

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Example CMake command line to create project build files:
22
#
33
# *** Windows ***
4-
# cmake -G "Visual Studio 17 2022" -A Win32 -B ../SimpleSocketProtocolBuild -S .
4+
# cmake -G "Visual Studio 17 2022" -A Win32 -B Build -S .
55
#
66
# *** Linux ***
7-
# cmake -G "Unix Makefiles" -B ../SimpleSocketProtocolBuild -S .
7+
# cmake -G "Unix Makefiles" -B Build -S .
88
#
99
# See ssp_opt.h for HAL and OSAL build options.
1010

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
![License MIT](https://img.shields.io/github/license/BehaviorTree/BehaviorTree.CPP?color=blue)
2+
[![conan Ubuntu](https://github.com/endurodave/SimpleSocketProtocol/actions/workflows/cmake_ubuntu.yml/badge.svg)](https://github.com/endurodave/SimpleSocketProtocol/actions/workflows/cmake_ubuntu.yml)
3+
[![conan Ubuntu](https://github.com/endurodave/SimpleSocketProtocol/actions/workflows/cmake_clang.yml/badge.svg)](https://github.com/endurodave/SimpleSocketProtocol/actions/workflows/cmake_clang.yml)
4+
[![conan Windows](https://github.com/endurodave/SimpleSocketProtocol/actions/workflows/cmake_windows.yml/badge.svg)](https://github.com/endurodave/SimpleSocketProtocol/actions/workflows/cmake_windows.yml)
5+
16
# Simple Socket Protocol for Embedded Systems
27

38
A simple C language socket-based communication transport protocol ported to Windows, Linux, Arduino and embedded systems. Any hardware transport is supported such as serial UART, SPI, CAN bus, etc...

0 commit comments

Comments
 (0)