From 22b7a45f7b080809f1a7e451e56910845d6faf1d Mon Sep 17 00:00:00 2001 From: Jamie Smith Date: Sun, 10 Apr 2022 17:17:51 -0700 Subject: [PATCH] Enable running host tests in Github Actions --- .github/workflows/host_tests.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/host_tests.yml diff --git a/.github/workflows/host_tests.yml b/.github/workflows/host_tests.yml new file mode 100644 index 0000000000..b4cfba0810 --- /dev/null +++ b/.github/workflows/host_tests.yml @@ -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