mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
add macosx
This commit is contained in:
parent
1f2a527d8f
commit
9020d42d7c
3 changed files with 59 additions and 7 deletions
7
.github/workflows/build-linux-gcc.yml
vendored
7
.github/workflows/build-linux-gcc.yml
vendored
|
|
@ -8,8 +8,6 @@ env:
|
||||||
build_type: "Release"
|
build_type: "Release"
|
||||||
cc: "gcc"
|
cc: "gcc"
|
||||||
cxx: "g++"
|
cxx: "g++"
|
||||||
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
|
|
||||||
run_tests: true
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-linux
|
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-linux
|
||||||
|
|
@ -17,7 +15,7 @@ concurrency:
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build-linux:
|
||||||
if: github.repository == 'TorqueGameEngines/Torque3D'
|
if: github.repository == 'TorqueGameEngines/Torque3D'
|
||||||
name: Linux Ubuntu 20.04 GCC
|
name: Linux Ubuntu Latest GCC
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
@ -67,7 +65,6 @@ jobs:
|
||||||
parallel: 14
|
parallel: 14
|
||||||
|
|
||||||
- name: Unit Tests
|
- name: Unit Tests
|
||||||
if: ${{env.run_tests}}
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd "${{github.workspace}}/My Projects/Torque3D/game"
|
cd "${{github.workspace}}/My Projects/Torque3D/game"
|
||||||
|
|
@ -76,4 +73,4 @@ jobs:
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: ./.github/actions/upload-artifact
|
uses: ./.github/actions/upload-artifact
|
||||||
with:
|
with:
|
||||||
name: torque3dWindowsMSVCUnitTest
|
name: torque3dLinuxGCCUnitTest
|
||||||
57
.github/workflows/build-macos-clang.yml
vendored
Normal file
57
.github/workflows/build-macos-clang.yml
vendored
Normal file
|
|
@ -0,0 +1,57 @@
|
||||||
|
name: MacOSX Build CLANG
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [development]
|
||||||
|
pull_request:
|
||||||
|
branches: [development]
|
||||||
|
env:
|
||||||
|
build_type: "Release"
|
||||||
|
cc: "clang"
|
||||||
|
cxx: "clang++"
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-macosx
|
||||||
|
cancel-in-progress: true
|
||||||
|
jobs:
|
||||||
|
build-linux:
|
||||||
|
if: github.repository == 'TorqueGameEngines/Torque3D'
|
||||||
|
name: MacOSX Latest CLANG
|
||||||
|
runs-on: macos-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Print env
|
||||||
|
run: |
|
||||||
|
echo github.event.action: ${{ github.event.action }}
|
||||||
|
echo github.event_name: ${{ github.event_name }}
|
||||||
|
|
||||||
|
- name: Install MacOSX Dependencies
|
||||||
|
run: |
|
||||||
|
cmake --version
|
||||||
|
|
||||||
|
- name: Configure Build & Install
|
||||||
|
uses: ashutoshvarma/action-cmake-build@v1
|
||||||
|
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
|
||||||
|
|
||||||
|
- name: Unit Tests
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
cd "${{github.workspace}}/My Projects/Torque3D/game"
|
||||||
|
./Torque3D.app/Contents/MacOS/Torque3D runTests.tscript
|
||||||
|
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: ./.github/actions/upload-artifact
|
||||||
|
with:
|
||||||
|
name: torque3dMacOSXCLANGUnitTest
|
||||||
2
.github/workflows/build-windows-msvc.yml
vendored
2
.github/workflows/build-windows-msvc.yml
vendored
|
|
@ -9,7 +9,6 @@ env:
|
||||||
cc: "cl"
|
cc: "cl"
|
||||||
cxx: "cl"
|
cxx: "cl"
|
||||||
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
|
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
|
||||||
run_tests: true
|
|
||||||
|
|
||||||
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
|
||||||
|
|
@ -53,7 +52,6 @@ jobs:
|
||||||
parallel: 14
|
parallel: 14
|
||||||
|
|
||||||
- name: Unit Tests
|
- name: Unit Tests
|
||||||
if: ${{env.run_tests}}
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd "${{github.workspace}}/My Projects/Torque3D/game"
|
cd "${{github.workspace}}/My Projects/Torque3D/game"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue