diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index af3e95da99188770b75876ab322276312e2959c8..450ff34232ef0d634604b52099641bfa450813be 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)