Enable running host tests in Github Actions

pull/15339/head
Jamie Smith 2022-04-10 17:17:51 -07:00 committed by Jay Sridharan
parent d85c55a493
commit 22b7a45f7b
1 changed files with 20 additions and 0 deletions

20
.github/workflows/host_tests.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Run host tests with CMake
on: [pull_request]
jobs:
host-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dev tools
run: sudo apt-get install -y cmake ninja-build
- name: Compile and test for host
run: |
mkdir __build && cd __build
cmake .. -GNinja -DBUILD_GREENTEA_TESTS=FALSE -DBUILD_TESTING=TRUE
ninja
ctest . --output-on-failure -V