From b02793d7018ad23a0e3b213a7eeb477d59966ade Mon Sep 17 00:00:00 2001
From: Andrews Cordolino Sobral <andrewssobral@users.noreply.github.com>
Date: Sun, 24 Jul 2022 17:15:16 +0200
Subject: [PATCH] Update cmake.yml (#212)

* Update cmake.yml

* Update cmake.yml

* Update cmake.yml

* Update cmake.yml

* Update cmake.yml
---
 .github/workflows/cmake.yml | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index af3e95d..450ff34 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -21,14 +21,23 @@ jobs:
     steps:
     - uses: actions/checkout@v3
 
-    - name: Configure CMake
+    - name: Compile C++ library
       # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
       # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
       # run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-      run: cd ${{github.workspace}}/build && cmake ..
+      run: cd build && cmake .. && make -j $(nproc)
 
-    - name: Build
+    - name: Build and install the python wrapper
       # Build your program with the given configuration
       # run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
-      run: cd ${{github.workspace}}/build && make -j $(nproc)
-      
+      run: git config --global --add safe.directory /__w/bgslibrary/bgslibrary && git submodule update --init --recursive && python setup.py build && python setup.py install
+
+    - name: Compile the C++ QT User Interface
+      # Build your program with the given configuration
+      # run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
+      run: cd gui/qt/build && cmake .. && make -j $(nproc)
+
+    - name: Compile examples
+      # Build your program with the given configuration
+      # run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
+      run: cd examples/build && cmake .. && make -j $(nproc)
-- 
GitLab