Bläddra i källkod

Update build-windows-msvc.yml

marauder2k7 2 år sedan
förälder
incheckning
04184370cb
1 ändrade filer med 14 tillägg och 11 borttagningar
  1. 14 11
      .github/workflows/build-windows-msvc.yml

+ 14 - 11
.github/workflows/build-windows-msvc.yml

@@ -37,15 +37,18 @@ jobs:
                 cmake --version
                 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