-
Notifications
You must be signed in to change notification settings - Fork 84
105 lines (90 loc) · 3.25 KB
/
macos.yml
File metadata and controls
105 lines (90 loc) · 3.25 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: 🍎 macOS Builds
# TODO: Investigate making this on tag instead of push since builds take so long
on: [push]
# Global Cache Settings
env:
GODOT_BASE_BRANCH: '3.2.2-stable'
BASE_BRANCH: master
SCONS_CACHE_LIMIT: 4096
jobs:
macos-editor:
runs-on: macos-latest
name: macOS Editor
steps:
- name: Get dependencies
run: |
brew install scons yasm
- name: Checkout Godot
uses: actions/checkout@v2
with:
repository: 'godotengine/godot'
ref: ${{ env.GODOT_BASE_BRANCH }}
- name: Checkout ECMAScript
uses: actions/checkout@v2
with:
path: ${{github.workspace}}/modules/ECMAScript/
# Upload cache on completion and check it out now
- name: Load .scons_cache directory
id: macos-editor-cache
uses: actions/cache@v2
with:
path: ${{github.workspace}}/.scons_cache/
key: ${{github.job}}-${{env.BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
restore-keys: |
${{github.job}}-${{env.BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
${{github.job}}-${{env.BASE_BRANCH}}-${{github.ref}}
${{github.job}}-${{env.BASE_BRANCH}}
- name: Build godot with ECMAScript module for macOS
run: |
scons p=osx arch=x86_64 target=release_debug -j8
strip bin/godot.osx.opt.tools.x86_64
- name: Publish artifact
uses: actions/upload-artifact@v2
with:
name: godot.javascript.osx.opt.tools.x86_64
path: bin/godot.osx.opt.tools.x86_64
macos-template:
runs-on: macos-latest
name: macOS Template
steps:
- name: Get dependencies
run: |
brew install scons yasm
- name: Checkout Godot
uses: actions/checkout@v2
with:
repository: 'godotengine/godot'
ref: ${{ env.GODOT_BASE_BRANCH }}
- name: Checkout ECMAScript
uses: actions/checkout@v2
with:
path: ${{github.workspace}}/modules/ECMAScript/
# Upload cache on completion and check it out now
- name: Load .scons_cache directory
id: macos-template-cache
uses: actions/cache@v2
with:
path: ${{github.workspace}}/.scons_cache/
key: ${{github.job}}-${{env.BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
restore-keys: |
${{github.job}}-${{env.BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
${{github.job}}-${{env.BASE_BRANCH}}-${{github.ref}}
${{github.job}}-${{env.BASE_BRANCH}}
- name: Build godot with ECMAScript module for macOS (release)
run: |
scons p=osx arch=x86_64 tools=no target=release -j8
strip bin/godot.osx.opt.x86_64
- name: Publish artifact (release)
uses: actions/upload-artifact@v2
with:
name: osx_release.64
path: bin/godot.osx.opt.x86_64
- name: Build godot with ECMAScript module for macOS (debug)
run: |
scons p=osx arch=x86_64 tools=no target=release_debug -j8
strip bin/godot.osx.opt.debug.x86_64
- name: Publish artifact (debug)
uses: actions/upload-artifact@v2
with:
name: osx_debug.64
path: bin/godot.osx.opt.debug.x86_64