adress https://github.com/TorqueGameEngines/Torque3D/issues/1822 #2486
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: MacOSX Build | |
| on: | |
| push: | |
| branches: [development] | |
| pull_request: | |
| branches: [development] | |
| concurrency: | |
| group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-macosx | |
| cancel-in-progress: true | |
| permissions: | |
| checks: write | |
| jobs: | |
| build-macos: | |
| if: github.repository == 'TorqueGameEngines/Torque3D' | |
| name: ${{matrix.config.name}} | |
| runs-on: ${{matrix.config.os}} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - { | |
| name: "macOS ARM Clang Ninja", | |
| os: "macos-latest", | |
| build_type: "Release", | |
| cc: "clang", | |
| cxx: "clang++", | |
| generator: "Ninja", | |
| } | |
| - { | |
| name: "macOS ARM Xcode", | |
| os: "macos-latest", | |
| build_type: "Release", | |
| cc: "clang", | |
| cxx: "clang++", | |
| generator: "Xcode", | |
| } | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Print env | |
| run: | | |
| echo github.event.action: ${{ github.event.action }} | |
| echo github.event_name: ${{ github.event_name }} | |
| - name: Run GIT Init | |
| run: git init | |
| - name: Setup GCC problem matcher | |
| uses: ammaraskar/gcc-problem-matcher@master | |
| - name: Install MacOSX Dependencies | |
| run: | | |
| brew install ninja zip unzip curl pkgconfig | |
| ninja --version | |
| cmake --version | |
| clang --version | |
| - name: Configure, Build & Install | |
| uses: threeal/cmake-action@v1.3.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: CMAKE_BUILD_TYPE=${{matrix.config.build_type}} TORQUE_APP_NAME=Torque3D TORQUE_TESTING=ON | |
| run-build: true | |
| build-args: --config ${{matrix.config.build_type}} --target install | |
| - name: Unit Tests | |
| run: | | |
| cd "${{github.workspace}}/My Projects/Torque3D/game" | |
| ./Torque3D.app/Contents/MacOS/Torque3D runTests.tscript | |
| - name: Test Reporter | |
| uses: phoenix-actions/test-reporting@v14 | |
| with: | |
| name: ${{matrix.config.name}} test results | |
| path: "**/My Projects/Torque3D/game/test_detail.xml" | |
| reporter: java-junit | |
| fail-on-error: true | |
| if: github.event_name != 'pull_request' |