add macosx

This commit is contained in:
marauder2k7 2023-07-25 21:48:50 +01:00
parent 1f2a527d8f
commit 9020d42d7c
3 changed files with 59 additions and 7 deletions

View file

@ -8,8 +8,6 @@ env:
build_type: "Release"
cc: "gcc"
cxx: "g++"
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
run_tests: true
concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-linux
@ -17,7 +15,7 @@ concurrency:
jobs:
build-linux:
if: github.repository == 'TorqueGameEngines/Torque3D'
name: Linux Ubuntu 20.04 GCC
name: Linux Ubuntu Latest GCC
runs-on: ubuntu-latest
strategy:
fail-fast: false
@ -67,7 +65,6 @@ jobs:
parallel: 14
- name: Unit Tests
if: ${{env.run_tests}}
shell: bash
run: |
cd "${{github.workspace}}/My Projects/Torque3D/game"
@ -76,4 +73,4 @@ jobs:
- name: Upload Artifact
uses: ./.github/actions/upload-artifact
with:
name: torque3dWindowsMSVCUnitTest
name: torque3dLinuxGCCUnitTest

57
.github/workflows/build-macos-clang.yml vendored Normal file
View 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

View file

@ -9,7 +9,6 @@ env:
cc: "cl"
cxx: "cl"
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
run_tests: true
concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-windows
@ -53,7 +52,6 @@ jobs:
parallel: 14
- name: Unit Tests
if: ${{env.run_tests}}
shell: bash
run: |
cd "${{github.workspace}}/My Projects/Torque3D/game"