🕍 Update?? #46
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
name: macOS | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
platform: | |
- macOS | |
xcode: | |
- ^11 | |
configuration: | |
- Debug | |
- Release | |
type: | |
- Editor | |
- Game_macOS | |
runs-on: macos-11 | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: "5.0.100" | |
- name: Generate ThirdParty Libraries | |
shell: bash | |
run: | | |
cd Engine/ThirdParty | |
sh GenerateSolutions.command | |
cd ../../ | |
- name: Generate a new project | |
shell: bash | |
run: cd Project && sh GenerateSolution.command && cd ../ | |
- name: Build Editor | |
if: ${{ matrix.type == 'Editor' }} | |
uses: mxcl/xcodebuild@v1 | |
with: | |
xcode: ${{ matrix.xcode }} | |
platform: ${{ matrix.platform }} | |
action: build # default = `test` | |
code-coverage: true # default = `false` | |
warnings-as-errors: false # default = `false` | |
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@v1 | |
with: | |
xcode: ${{ matrix.xcode }} | |
platform: ${{ matrix.platform }} | |
action: build # default = `test` | |
code-coverage: true # default = `false` | |
warnings-as-errors: false # default = `false` | |
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@v2 | |
with: | |
name: Stack - ${{matrix.type}} - ${{matrix.buildconfig}} | |
path: | | |
Build/${{matrix.buildconfig}} |