From c514a653be1d3ec8593702564f2cffe708e977c8 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Thu, 11 Jan 2024 10:39:33 +0100 Subject: [PATCH] Build downstream project in CI --- .github/workflows/key4hep.yml | 7 +++++++ .github/workflows/linux.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/key4hep.yml b/.github/workflows/key4hep.yml index 9db920284..1b74f57da 100644 --- a/.github/workflows/key4hep.yml +++ b/.github/workflows/key4hep.yml @@ -28,3 +28,10 @@ jobs: make -k make install ctest --output-on-failure + echo "::group::Test downstream build" + cd - + export CMAKE_PREFIX_PATH=$PWD/install:$CMAKE_PREFIX_PATH + cd tests/downstream-project-cmake-test + mkdir build && cd build + cmake .. -DCMAKE_CXX_STANDARD=17 + make -k diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index f93a904a3..084e222cb 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -30,3 +30,10 @@ jobs: make -k make install ctest --output-on-failure + echo "::group::Test downstream build" + cd - + export CMAKE_PREFIX_PATH=$PWD/install:$CMAKE_PREFIX_PATH + cd tests/downstream-project-cmake-test + mkdir build && cd build + cmake .. -DCMAKE_CXX_STANDARD=17 + make -k