-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (71 loc) · 2.16 KB
/
Copy pathmacOS.yml
File metadata and controls
82 lines (71 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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}}