Skip to content

Commit d129944

Browse files
Create c-cpp.yml
feat/ci-build
1 parent e678586 commit d129944

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/c-cpp.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: C/C++ CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
# Clone the dependency repo (replace URL and branch/tag)
18+
- name: Clone dependency library
19+
run: |
20+
git clone --depth 1 --branch release/0.1.0 https://github.com/robert-burger/libosal.git deps/libosal
21+
22+
# Optional: build or install the dependency if needed
23+
- name: Build dependency library
24+
run: |
25+
cd deps/libosal
26+
mkdir build && cd build
27+
cmake ..
28+
make
29+
sudo make install # if needed to install globally
30+
31+
- name: configure
32+
run: ./configure
33+
34+
- name: make
35+
run: make
36+
37+
- name: make check
38+
run: make check
39+
40+
- name: make distcheck
41+
run: make distcheck

0 commit comments

Comments
 (0)