mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
Update build-windows-msvc.yml
github workflow doesnt like env?
This commit is contained in:
parent
9020d42d7c
commit
dc3060c919
1 changed files with 11 additions and 11 deletions
18
.github/workflows/build-windows-msvc.yml
vendored
18
.github/workflows/build-windows-msvc.yml
vendored
|
|
@ -4,11 +4,6 @@ on:
|
||||||
branches: [development]
|
branches: [development]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [development]
|
branches: [development]
|
||||||
env:
|
|
||||||
build_type: "Release"
|
|
||||||
cc: "cl"
|
|
||||||
cxx: "cl"
|
|
||||||
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
|
|
||||||
|
|
||||||
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
|
||||||
|
|
@ -20,6 +15,11 @@ jobs:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
build_type: "Release"
|
||||||
|
cc: "cl"
|
||||||
|
cxx: "cl"
|
||||||
|
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
|
@ -34,16 +34,16 @@ jobs:
|
||||||
- name: Install Windows MSVC Dependencies
|
- name: Install Windows MSVC Dependencies
|
||||||
run: |
|
run: |
|
||||||
cmake --version
|
cmake --version
|
||||||
cmd "${{env.environment_script}}"
|
cmd "${{matrix.environment_script}}"
|
||||||
|
|
||||||
- name: Configure Build & Install
|
- name: Configure Build & Install
|
||||||
uses: ashutoshvarma/action-cmake-build@v1
|
uses: ashutoshvarma/action-cmake-build@v1
|
||||||
with:
|
with:
|
||||||
build-dir: ${{github.workspace}}/build
|
build-dir: ${{github.workspace}}/build
|
||||||
# will set the CC & CXX for cmake
|
# will set the CC & CXX for cmake
|
||||||
cc: ${{env.cc}}
|
cc: ${{matrix.cc}}
|
||||||
cxx: ${{env.cxx}}
|
cxx: ${{matrix.cxx}}
|
||||||
build-type: ${{env.build_type}}
|
build-type: ${{matrix.build_type}}
|
||||||
# Extra options pass to cmake while configuring project
|
# Extra options pass to cmake while configuring project
|
||||||
configure-options: -DTORQUE_APP_NAME=Torque3D -DTORQUE_TESTING=ON
|
configure-options: -DTORQUE_APP_NAME=Torque3D -DTORQUE_TESTING=ON
|
||||||
# install the build using cmake --install
|
# install the build using cmake --install
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue