-
Notifications
You must be signed in to change notification settings - Fork 18
99 lines (86 loc) · 2.86 KB
/
windows_builds.yml
File metadata and controls
99 lines (86 loc) · 2.86 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
name: 🎨 Windows
on:
pull_request:
branches:
- '*'
push:
branches:
- 'gd3'
env:
GOOST_BASE_BRANCH: gd3
SCONSFLAGS: godot_modules_enabled=no verbose=yes warnings=all werror=yes debug_symbols=no --jobs=4
SCONS_CACHE_MSVC_CONFIG: true
SCONS_CACHE_LIMIT: 8192
jobs:
windows-editor:
runs-on: "windows-latest"
name: Editor (target=release_debug, tools=yes)
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
# Editing this is pretty dangerous for Windows since it can break.
# Needs to be properly tested with a fresh cache.
- name: Load .scons_cache directory
id: windows-editor-cache
uses: RevoluPowered/cache@v2.1
with:
path: /.scons_cache/
key: ${{github.job}}-${{env.GOOST_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
restore-keys: |
${{github.job}}-${{env.GOOST_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
${{github.job}}-${{env.GOOST_BASE_BRANCH}}-${{github.ref}}
${{github.job}}-${{env.GOOST_BASE_BRANCH}}
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
- name: Configuring Python packages
run: |
python -c "import sys; print(sys.version)"
python -m pip install scons pywin32
python --version
scons --version
- name: Compilation
env:
SCONS_CACHE: /.scons_cache/
run: |
scons platform=windows tools=yes target=release_debug
- uses: actions/upload-artifact@v2
with:
name: godot.windows.opt.tools.64.goost
path: godot/bin/godot.windows.opt.tools.64.goost.exe
windows-template:
runs-on: "windows-latest"
name: Template (target=release, tools=no)
steps:
- uses: actions/checkout@v2
# Editing this is pretty dangerous for Windows since it can break.
# Needs to be properly tested with a fresh cache.
- name: Load .scons_cache directory
id: windows-template-cache
uses: RevoluPowered/cache@v2.1
with:
path: /.scons_cache/
key: ${{github.job}}-${{env.GOOST_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
restore-keys: |
${{github.job}}-${{env.GOOST_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
${{github.job}}-${{env.GOOST_BASE_BRANCH}}-${{github.ref}}
${{github.job}}-${{env.GOOST_BASE_BRANCH}}
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
- name: Configuring Python packages
run: |
python -c "import sys; print(sys.version)"
python -m pip install scons pywin32
python --version
scons --version
- name: Compilation
env:
SCONS_CACHE: /.scons_cache/
run: |
scons platform=windows target=release tools=no