-
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ccacae6
commit 8fb566b
Showing
2 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: MacOSX Build 🍎 | ||
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: ${{matrix.config.name}} | ||
runs-on: macosx-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- { | ||
name: "MacOSX Latest Clang", | ||
build_type: "Release", | ||
cc: "clang", | ||
cxx: "clang++", | ||
generator: "Ninja" | ||
} | ||
|
||
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: | | ||
ninja --version | ||
cmake --version | ||
- name: Configure, Build & Install | ||
uses: threeal/[email protected] | ||
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: Upload Artifact | ||
uses: ./.github/actions/upload-artifact | ||
with: | ||
name: torque3dMacOSXCLANGUnitTest |
This file contains 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