|
@@ -37,15 +37,18 @@ jobs:
|
|
cmake --version
|
|
cmake --version
|
|
cmd "${{env.environment_script}}"
|
|
cmd "${{env.environment_script}}"
|
|
|
|
|
|
- - name: Configure
|
|
|
|
- shell: bash
|
|
|
|
- run: cmake -B ${{github.workspace}}/build -G "${{env.generators}}" -DCMAKE_BUILD_TYPE=${{env.build_type}} -DTORQUE_APP_NAME=Torque3D -DTORQUE_TESTING=ON
|
|
|
|
-
|
|
|
|
- - name: Build
|
|
|
|
- shell: bash
|
|
|
|
- run: cmake --build . --config ${{ env.build_type}}
|
|
|
|
-
|
|
|
|
- - name: Install
|
|
|
|
- shell: bash
|
|
|
|
- run: cmake --install
|
|
|
|
|
|
+ - name: Build & Test
|
|
|
|
+ uses: ashutoshvarma/action-cmake-build@master
|
|
|
|
+ with:
|
|
|
|
+ build-dir: ${{github.workspace}}/build
|
|
|
|
+ # will set the CC & CXX for cmake
|
|
|
|
+ cc: ${{env.cc}}
|
|
|
|
+ cxx: ${{env.cxx}}
|
|
|
|
+ build-type: ${{env.build_type}}
|
|
|
|
+ # Extra options pass to cmake while configuring project
|
|
|
|
+ configure-options: -DTORQUE_APP_NAME=Torque3D -DTORQUE_TESTING=ON
|
|
|
|
+ # install the build using cmake --install
|
|
|
|
+ install-build: true
|
|
|
|
+ # run build using '-j [parallel]' to use multiple threads to build
|
|
|
|
+ parallel: 14
|
|
|
|
|