(MOD) Added more steps for project building.

This commit is contained in:
2024-06-25 14:15:17 +08:00
parent 092dddf6c4
commit 55d9ddef39
3 changed files with 16 additions and 7 deletions

View File

@@ -66,16 +66,20 @@ jobs:
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ github.workspace }}
- name: PreInstall
# Perform pre-installation.
run: ./preinstall
- name: Build
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
- name: PostInstall
# Perform post-installation.
run: ./postinstall
- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest --build-config ${{ matrix.build_type }}
- name: Install
# By running "install" script to install project header files and shared object file later on after the compilation.
run: ./install