Skip to content

Commit 0ae2d8c

Browse files
github: workflows: Add build workflows
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
1 parent c2a4674 commit 0ae2d8c

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build and Test libcsp_examples
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Check out the code
11+
uses: actions/checkout@v4
12+
with:
13+
submodules: true
14+
15+
- name: Install dependencies
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install libzmq3-dev libsocketcan-dev socat iproute2
19+
sudo apt-get install linux-modules-extra-$(uname -r)
20+
sudo apt-get install ninja-build cmake
21+
22+
- name: Initialize git submodules
23+
run: |
24+
git submodule init
25+
git submodule update
26+
27+
- name: Create build directory
28+
run: |
29+
mkdir build
30+
cd build
31+
cmake .. # Configuration du projet avec CMake
32+
33+
- name: Build the project
34+
run: |
35+
cd build
36+
make

0 commit comments

Comments
 (0)