Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
Loading