From eba76d37ff7ad892e18139d9742a8b46ad36197b Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Wed, 26 Jul 2023 07:30:28 +0100 Subject: [PATCH] Update build-windows-msvc.yml --- .github/workflows/build-windows-msvc.yml | 28 +++++++++--------------- 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build-windows-msvc.yml b/.github/workflows/build-windows-msvc.yml index a6b2e0a43..c43df7d83 100644 --- a/.github/workflows/build-windows-msvc.yml +++ b/.github/workflows/build-windows-msvc.yml @@ -47,24 +47,16 @@ jobs: cmake --version cmd "${{matrix.config.environment_script}}" - - name: Configure - shell: bash - run: | - mkdir build - cmake \ - -S ${{github.workspace}} \ - -B ${{github.workspace}}/build \ - -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \ - -G "${{ matrix.config.generator }}" \ - -DTORQUE_APP_NAME=Torque3D -DTORQUE_TESTING=ON - - - name: Build - shell: bash - run: cmake --build . --config ${{ matrix.config.build_type }} - - - name: Install - shell: bash - run: cmake --install + - name: Configure & Build + uses: threeal/cmake-action@v1.2.0 + with: + source-dir: ${{github.workspace}} + build-dir: ${{github.workspace}}/build + c-compiler: ${{matrix.config.cc}} + cxx-compiler: ${{matrix.config.cxx}} + generator: ${{matrix.config.generator}} + options: -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DTORQUE_APP_NAME=Torque3D -DTORQUE_TESTING=ON + run-build: true - name: Install run: cmake --install