Skip to content

Commit 3fb9745

Browse files
committed
ci: build library and run CTest host suite
Signed-off-by: Ozan Durgut <ozndrgt@gmail.com>
1 parent c8d20b1 commit 3fb9745

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

‎.github/workflows/tests.yml‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
host-tests:
11+
name: Host build + CTest
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
submodules: recursive
19+
20+
- name: Install Build Tools
21+
run: |
22+
sudo apt-get update -qq
23+
sudo apt-get install -y -qq cmake build-essential python3
24+
25+
- name: Configure (HOST target, tests enabled)
26+
run: |
27+
cmake -S . -B build \
28+
-DEMBEDDIP_TARGET_BOARD=HOST \
29+
-DEMBEDDIP_ARCH=HOST \
30+
-DEMBEDDIP_CPU=NATIVE \
31+
-DEMBEDDIP_BUILD_TESTS=ON \
32+
-DCMAKE_BUILD_TYPE=Debug
33+
34+
- name: Build
35+
run: cmake --build build --parallel
36+
37+
- name: Run CTest
38+
run: ctest --test-dir build --output-on-failure

0 commit comments

Comments
 (0)