(MOD) Added more steps for project building.
This commit is contained in:
12
.github/workflows/cmake-multi-platform.yml
vendored
12
.github/workflows/cmake-multi-platform.yml
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user