From 8fb566b05989ca5c8535b625c4d4225d7a9ebb0e Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Wed, 26 Jul 2023 08:43:07 +0100 Subject: [PATCH] no more errors --- .github/workflows/build-macos-clang.yml | 64 ++++++++++++++++++++++++ .github/workflows/build-windows-msvc.yml | 7 ++- 2 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build-macos-clang.yml diff --git a/.github/workflows/build-macos-clang.yml b/.github/workflows/build-macos-clang.yml new file mode 100644 index 000000000..97a189810 --- /dev/null +++ b/.github/workflows/build-macos-clang.yml @@ -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/cmake-action@v1.2.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: Upload Artifact + uses: ./.github/actions/upload-artifact + with: + name: torque3dMacOSXCLANGUnitTest \ No newline at end of file diff --git a/.github/workflows/build-windows-msvc.yml b/.github/workflows/build-windows-msvc.yml index 6ff30784c..299f16500 100644 --- a/.github/workflows/build-windows-msvc.yml +++ b/.github/workflows/build-windows-msvc.yml @@ -1,4 +1,4 @@ -name: Windows Build +name: Windows Build 🟥🟩🟦🟨 on: push: branches: [development] @@ -24,6 +24,7 @@ jobs: environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat", generator: "Visual Studio 17 2022" } + steps: - uses: actions/checkout@v3 - uses: ilammy/msvc-dev-cmd@v1 @@ -53,7 +54,9 @@ jobs: build-args: --config ${{matrix.config.build_type}} --target install - name: Unit Tests - run: ${{github.workspace}}/My Projects/Torque3D/game/Torque3D.exe runTests.tscript + run: | + cd "${{github.workspace}}/My Projects/Torque3D/game" + ./Torque3D.exe runTests.tscript - name: Upload Artifact uses: ./.github/actions/upload-artifact