Update build-windows-msvc.yml

This commit is contained in:
marauder2k7 2023-07-25 19:36:30 +01:00
parent 017d7abb63
commit ea2cd337f4

View file

@ -5,48 +5,47 @@ on:
pull_request: pull_request:
branches: [development] branches: [development]
concurrency: concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-windows group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-windows
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
build-windows: build-windows:
runs-on: "windows-latest" name: ${{ matrix.name }}
name: ${{matrix.name}} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
include: name: Windows Latest MSVC
- name: "TorqueWindows" os: windows-latest
tests: true build_type: "Release"
build_type: "Release" cc: "cl"
cc: "cl" cxx: "cl"
cxx: "cl" environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
bin: "./Torque3D.exe" generators: "Visual Studio 16 2019"
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
generators: "Visual Studio 17 2022"
steps:
- uses: actions/checkout@v3
- name: Print env steps:
run: | - uses: actions/checkout@v3
echo github.event.action: ${{ github.event.action }}
echo github.event_name: ${{ github.event_name }}
- name: Setup MSVC problem matcher - name: Print env
uses: ammaraskar/msvc-problem-matcher@master run: |
echo github.event.action: ${{ github.event.action }}
echo github.event_name: ${{ github.event_name }}
- name: Install Windows MSVC Dependencies - name: Setup MSVC problem matcher
run: | uses: ammaraskar/msvc-problem-matcher@master
choco install cmake
cmake --version
- name: Configure - name: Install Windows MSVC Dependencies
shell: bash run: |
run: cmake \ choco install cmake
-B ${{github.workspace}}/build \ cmake --version
-G "${{matrix.generators}}" \
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ - name: Configure
-DTORQUE_APP_NAME=Torque3D \ shell: bash
-DTORQUE_TESTING=ON run: cmake \
-B ${{ github.workspace }}/build \
-G "${{ matrix.generators }}" \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DTORQUE_APP_NAME=Torque3D \
-DTORQUE_TESTING=ON