-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 865 Bytes
/
Copy pathtests.yml
File metadata and controls
38 lines (31 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
host-tests:
name: Host build + CTest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Build Tools
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq cmake build-essential python3
- name: Configure (HOST target, tests enabled)
run: |
cmake -S . -B build \
-DEMBEDDIP_TARGET_BOARD=HOST \
-DEMBEDDIP_ARCH=HOST \
-DEMBEDDIP_CPU=NATIVE \
-DEMBEDDIP_BUILD_TESTS=ON \
-DCMAKE_BUILD_TYPE=Debug
- name: Build
run: cmake --build build --parallel
- name: Run CTest
run: ctest --test-dir build --output-on-failure