From 180308f7c2693345a0719cafeb74ef5049dd1211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Mon, 30 Dec 2019 16:40:45 -0700 Subject: [PATCH] Test in-tree builds This adds one in-tree build test for each platform, to ensure our CMake build system works both out-of-tree as well as in-tree. --- .github/workflows/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5e9639e09..d03c6a0e4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,3 +59,10 @@ jobs: - name: test run: cmake --build build --target test + + - name: Test in-tree builds + if: contains( matrix.gcc_v, '9') # Only test one compiler on each platform + run: | + cmake . + cmake --build . + cmake --build . --target test