forked from aq2-tng/aq2-tng
-
Notifications
You must be signed in to change notification settings - Fork 6
173 lines (149 loc) · 4.53 KB
/
build.yaml
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
name: TNG Build
on:
push:
branches: ["master", "aqtion"]
pull_request:
workflow_dispatch:
env:
GITHUB_TOKEN: ${{ github.token }}
jobs:
x86_build_tng:
runs-on: [self-hosted, x86]
steps:
- name: 'Cleanup build folder'
run: |
ls -la ./
rm -rf ./* || true
rm -rf ./.??* || true
ls -la ./
- uses: actions/checkout@v3
with:
# repository: aq2-tng/aq2-tng ## Official repository
repository: actionquake/aq2-tng
ref: ${{ github.ref }}
path: build
- name: Download mingw package
working-directory: build
run: |
wget -nv https://github.com/skullernet/q2pro-mgw-sdk/releases/download/2022-06-14/q2pro-mgw-sdk.tar.gz
tar xf q2pro-mgw-sdk.tar.gz
- name: Build TNG (Win 64-bit)
working-directory: build/source
run: make -j4 V=1 && mv gamex86_64.dll ../gamex86_64.dll
env:
TNG_BUILD_FOR: "WIN64"
USE_AQTION: "TRUE"
- name: Generate Win64 archive
uses: actions/upload-artifact@v3
with:
name: tng-win-64
path: |
build/gamex86_64.dll
- name: Build TNG (Win 32-bit)
working-directory: build/source
run: make clean && make -j4 V=1 && mv gamex86.dll ../gamex86.dll
env:
TNG_BUILD_FOR: "WIN32"
USE_AQTION: "TRUE"
- name: Generate Win32 archive
uses: actions/upload-artifact@v3
with:
name: tng-win-32
path: |
build/gamex86.dll
- name: Build TNG (Linux 64-bit)
working-directory: build/source
run: make clean && make -j4 V=1 && mv gamex86_64.so ../gamex86_64.so
env:
CC: "gcc"
USE_AQTION: "TRUE"
- name: Generate Linux x86 archive
uses: actions/upload-artifact@v3
with:
name: tng-lin-x86_64
path: |
build/gamex86_64.so
# The toil on keeping this stupid VM online is too much work
# x86_lin_compat_build_tng:
# runs-on: [self-hosted, X64, compat]
# steps:
# - name: 'Cleanup build folder'
# run: |
# ls -la ./
# rm -rf ./* || true
# rm -rf ./.??* || true
# ls -la ./
# - uses: actions/checkout@v3
# with:
# # repository: aq2-tng/aq2-tng ## Official repository
# repository: actionquake/aq2-tng
# ref: ${{ github.ref }}
# path: build
# - name: Build TNG (Linux 64-bit)
# working-directory: build/source
# run: make -j2 V=1 && mv gamex86_64.so ../gamex86_64.so
# env:
# CC: "gcc"
# USE_AQTION: "TRUE"
# - name: Generate Linux compat x86 archive
# uses: actions/upload-artifact@v3
# with:
# name: tng-lin-x86_64-compat
# path: |
# build/gamex86_64.so
arm64_build_tng:
runs-on: [self-hosted, ARM64]
steps:
- uses: actions/checkout@v3
with:
repository: actionquake/aq2-tng
ref: ${{ github.ref }}
path: build
- name: Build TNG (Linux ARM64)
working-directory: build/source
run: make -j4 V=1 && mv gamearm64.so ../gamearm64.so
env:
CC: "gcc"
USE_AQTION: "TRUE"
- name: Generate archive
uses: actions/upload-artifact@v3
with:
name: tng-lin-arm64
path: |
build/gamearm64.so
darwin_build_tng:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
repository: actionquake/aq2-tng
ref: ${{ github.ref }}
path: build
- name: Install dependencies
run: |
brew install curl ossp-uuid
- name: Build TNG (Darwin x86_64)
working-directory: build/source
run: make -j4 V=1 && mv gamex86_64.dylib ../gamex86_64.dylib
env:
CC: "gcc"
USE_AQTION: "TRUE"
TNG_BUILD_FOR: "DARWIN"
- name: Generate archive
uses: actions/upload-artifact@v3
with:
name: tng-darwin-x86_64
path: |
build/gamex86_64.dylib
- name: Build TNG (Darwin ARM64)
working-directory: build/source
run: make clean && make -j4 V=1 && mv gamearm.dylib ../gamearm64.dylib
env:
USE_AQTION: "TRUE"
TNG_BUILD_FOR: "M1"
- name: Generate archive
uses: actions/upload-artifact@v3
with:
name: tng-darwin-arm64
path: |
build/gamearm64.dylib