-
-
Notifications
You must be signed in to change notification settings - Fork 6
146 lines (129 loc) · 4.76 KB
/
addon_build.yml
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
name: Addon build
run-name: Building addon
on:
workflow_dispatch:
inputs:
artifact_addon:
description: 'Get artifacts'
required: true
default: false
type: boolean
artifact_test_room:
description: 'Get test_room'
required: true
default: false
type: boolean
jobs:
build:
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- name: Installing dependencies
run: pacman -Syu --noconfirm git bash yasm python python-pip scons gcc diffutils make wget unzip tar mingw-w64 ffmpeg
- name: Checkout submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Restore cached linux_debug
id: cache-linux-debug-restore
uses: actions/cache/restore@v4
with:
path: .scons-cache/
key: linux_debug_addon
- name: Build Linux debug
run: scons -j4 target=template_debug platform=linux arch=x86_64 use_system=yes dev_build=yes
- name: Save cache linux_debug
id: cache-linux-debug-save
uses: actions/cache/save@v4
with:
path: .scons-cache/
key: ${{ steps.cache-linux-debug-restore.outputs.cache-primary-key }}
- name: Restore cached linux_full_debug
id: cache-linux-full-debug-restore
uses: actions/cache/restore@v4
with:
path: .scons-cache/
key: linux_full_debug_addon
- name: Build Linux full debug
run: scons -j4 target=template_debug platform=linux arch=x86_64 use_system=no dev_build=yes
- name: Save cache linux_full_debug
id: cache-linux-full-debug-save
uses: actions/cache/save@v4
with:
path: .scons-cache/
key: ${{ steps.cache-linux-full-debug-restore.outputs.cache-primary-key }}
- name: Restore cached linux_release
id: cache-linux-release-restore
uses: actions/cache/restore@v4
with:
path: .scons-cache/
key: linux_release_addon
- name: Build Linux release
run: scons -j4 target=template_release platform=linux arch=x86_64 use_system=yes
- name: Save cache linux_release
id: cache-linux-release-save
uses: actions/cache/save@v4
with:
path: .scons-cache/
key: ${{ steps.cache-linux-release-restore.outputs.cache-primary-key }}
- name: Restore cached linux_full_release
id: cache-linux-full-release-restore
uses: actions/cache/restore@v4
with:
path: .scons-cache/
key: linux_full_release_addon
- name: Build Linux full release
run: scons -j4 target=template_release platform=linux arch=x86_64 use_system=no recompile_ffmpeg=no
- name: Save cache linux_full_release
id: cache-linux-full-release-save
uses: actions/cache/save@v4
with:
path: .scons-cache/
key: ${{ steps.cache-linux-full-release-restore.outputs.cache-primary-key }}
- name: Restore cached windows_debug
id: cache-windows-debug-restore
uses: actions/cache/restore@v4
with:
path: .scons-cache/
key: windows_debug_addon
- name: Build Windows debug
run: scons -j4 target=template_debug platform=windows arch=x86_64 dev_build=yes recompile_ffmpeg=yes
- name: Save cache windows_debug
id: cache-windows-debug-save
uses: actions/cache/save@v4
with:
path: .scons-cache/
key: ${{ steps.cache-windows-debug-restore.outputs.cache-primary-key }}
- name: Restore cached windows_release
id: cache-windows-release-restore
uses: actions/cache/restore@v4
with:
path: .scons-cache/
key: windows_release_addon
- name: Build Windows release
run: scons -j4 target=template_release platform=windows arch=x86_64 recompile_ffmpeg=no
- name: Save cache windows_release
id: cache-windows-release-save
uses: actions/cache/save@v4
with:
path: .scons-cache/
key: ${{ steps.cache-windows-release-restore.outputs.cache-primary-key }}
- name: Copying libs
run: |
cp -r bin/* test_room/addons/gde_gozen/bin/
cp LICENSE test_room/addons/gde_gozen/
- name: Uploading addon build
if: ${{ github.event.inputs.artifact_addon == 'true' }}
uses: actions/upload-artifact@v4
with:
name: Addon_GDE_GoZen
path: test_room/addons/
retention-days: 1
- name: Uploading test room build
if: ${{ github.event.inputs.artifact_test_room == 'true' }}
uses: actions/upload-artifact@v4
with:
name: test_room
path: test_room/
retention-days: 1