Revert "🧬 Bring me to life" #386
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: macOS | |
| on: | |
| push: | |
| branches: [master, motivation] | |
| pull_request: | |
| branches: [master, motivation] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| platform: | |
| - macOS | |
| xcode: | |
| - ^15 | |
| configuration: | |
| - Debug | |
| - Release | |
| type: | |
| - Editor | |
| - Game_macOS | |
| runs-on: macos-13 | |
| steps: | |
| - uses: suisei-cn/actions-download-file@818d6b7dc8fe73f2f924b6241f2b1134ca1377d9 # 1.6.0 | |
| id: downloadfile | |
| name: Grab the project setup file | |
| with: | |
| url: "https://raw.githubusercontent.com/wobbier/MitchEngine/${{github.ref_name}}/Tools/NewProjectSetup.command" | |
| target: ./ | |
| - name: Setup dotnet | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: "5.0.100" | |
| - name: Generate a new project | |
| shell: bash | |
| run: sh NewProjectSetup.command EmptyProject ${{github.ref_name}} | |
| - name: Generate a new project | |
| shell: bash | |
| run: cd Project && sh GenerateSolution.command && cd ../ && ls | |
| - name: Build Editor | |
| if: ${{ matrix.type == 'Editor' }} | |
| uses: mxcl/xcodebuild@v2 | |
| with: | |
| xcode: ${{ matrix.xcode }} | |
| platform: ${{ matrix.platform }} | |
| action: build # default = `test` | |
| code-coverage: true # default = `false` | |
| warnings-as-errors: false # default = `false` | |
| workspace: EmptyProject.xcworkspace | |
| configuration: ${{ matrix.type }}_${{ matrix.configuration }} # no default, ie. `xcodebuild` decides itself | |
| scheme: Havana_mac | |
| - name: Build Game | |
| if: ${{ matrix.type == 'Game_macOS' }} | |
| uses: mxcl/xcodebuild@v2 | |
| with: | |
| xcode: ${{ matrix.xcode }} | |
| platform: ${{ matrix.platform }} | |
| action: build # default = `test` | |
| code-coverage: true # default = `false` | |
| warnings-as-errors: false # default = `false` | |
| workspace: EmptyProject.xcworkspace | |
| configuration: ${{ matrix.type }}_${{ matrix.configuration }} # no default, ie. `xcodebuild` decides itself | |
| scheme: Game_EntryPoint_mac | |
| - name: Copy Assets (Not Implemented) | |
| shell: bash | |
| run: echo todo | |
| - name: Archive | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: EmptyProject - ${{matrix.type}} - ${{matrix.buildconfig}} | |
| path: | | |
| Build/${{matrix.buildconfig}} |