-
Notifications
You must be signed in to change notification settings - Fork 3
195 lines (160 loc) · 6.06 KB
/
test.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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
build-and-test-windows:
runs-on: windows-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: gets ags-toolbox
run: |
curl -Lo atbx.exe https://github.com/ericoporto/agstoolbox/releases/download/0.5.2/atbx.exe
echo "${{github.workspace}}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install AGS 3
run: |
atbx install editor -q ags3/auto-test/
- name: Install AGS 4
run: |
atbx install editor -q ags4/auto-test/
- name: Build AGS 3 game
run: |
atbx build ags3/auto-test/
- name: Build AGS 4 game
run: |
atbx build ags4/auto-test/
- name: Run AGS 3 game (Software)
shell: cmd
run: |
cd ags3\\auto-test\\Compiled\\Windows
.\\ags3-auto-test --no-message-box --gfxdriver software --log-stdout=script:info,main:info --user-data-dir .
mv agstest.tap agstest-software.tap
- name: Run AGS 3 game (Direct3D)
shell: cmd
run: |
cd ags3\\auto-test\\Compiled\\Windows
.\\ags3-auto-test --no-message-box --gfxdriver d3d9 --log-stdout=script:info,main:info --user-data-dir .
- name: Run AGS 4 game (Software)
shell: cmd
run: |
cd ags4\\auto-test\\Compiled\\Windows
.\\ags4-auto-test --no-message-box --gfxdriver software --log-stdout=script:info,main:info --user-data-dir .
mv agstest.tap agstest-software.tap
- name: Run AGS 4 game (Direct3D)
shell: cmd
run: |
cd ags4\\auto-test\\Compiled\\Windows
.\\ags4-auto-test --no-message-box --gfxdriver d3d9 --log-stdout=script:info,main:info --user-data-dir .
- name: Upload Artifacts AGS 3
uses: actions/upload-artifact@v4
with:
name: ags3-binaries
path: |
ags3/auto-test/Compiled/*/*
- name: Upload Artifacts AGS 4
uses: actions/upload-artifact@v4
with:
name: ags4-binaries
path: |
ags4/auto-test/Compiled/*/*
- name: Upload AGS 3 test log
uses: actions/upload-artifact@v4
with:
name: ags3-test-log-windows
path: ags3/auto-test/Compiled/Windows/agstest*.tap
- name: Upload AGS 4 test log
uses: actions/upload-artifact@v4
with:
name: ags4-test-log-windows
path: ags4/auto-test/Compiled/Windows/agstest*.tap
- name: Summary write
shell: sh
run: echo '### Test Summary AGS 3 (Direct3D)' >> $GITHUB_STEP_SUMMARY
- name: Test Summary AGS 3 (Direct3D)
uses: nikeee/tap-summary@dist
with:
path: "ags3/auto-test/Compiled/Windows/agstest.tap"
if: always()
- name: Summary write
shell: sh
run: echo '### Test Summary AGS 3 (Software)' >> $GITHUB_STEP_SUMMARY
- name: Test Summary AGS 3 (Software)
uses: nikeee/tap-summary@dist
with:
path: "ags3/auto-test/Compiled/Windows/agstest-software.tap"
if: always()
- name: Summary write
shell: sh
run: echo '### Test Summary AGS 4 (Direct3D)' >> $GITHUB_STEP_SUMMARY
- name: Test Summary AGS 4 (Direct3D)
uses: nikeee/tap-summary@dist
with:
path: "ags4/auto-test/Compiled/Windows/agstest.tap"
if: always()
- name: Summary write
shell: sh
run: echo '### Test Summary AGS 4 (Software)' >> $GITHUB_STEP_SUMMARY
- name: Test Summary AGS 4 (Software)
uses: nikeee/tap-summary@dist
with:
path: "ags4/auto-test/Compiled/Windows/agstest-software.tap"
if: always()
- name: Create release and upload assets
if: startsWith(github.ref, 'refs/tags/v')
uses: ncipollo/release-action@v1
with:
artifacts: |
ags3/auto-test/Compiled/Data/ags3-auto-test.ags
ags4/auto-test/Compiled/Data/ags4-auto-test.ags
allowUpdates: true
omitBodyDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}
test-others:
needs: build-and-test-windows
runs-on: ubuntu-latest
steps:
- name: Download AGS 3 artifacts
uses: actions/download-artifact@v4
with:
name: ags3-binaries
path: ags3-binaries
- name: Run AGS 3 Linux Game (Software)
run: |
cd ags3-binaries/Linux
chmod +x ags3-auto-test data/ags*
./ags3-auto-test --no-message-box --gfxdriver software --log-stdout=script:info,main:info --user-data-dir .
mv data/agstest.tap agstest-software.tap
- name: Upload Linux AGS 3 Test Log
uses: actions/upload-artifact@v4
with:
name: ags3-test-log-linux
path: ags3-binaries/Linux/agstest*.tap
- name: Summary write
run: echo '### Linux Test Summary AGS 3 (Software)' >> $GITHUB_STEP_SUMMARY
- name: Linux Test Summary AGS 3 (Software)
uses: nikeee/tap-summary@dist
with:
path: "ags3-binaries/Linux/agstest-software.tap"
if: always()
- name: Download AGS 4 artifacts
uses: actions/download-artifact@v4
with:
name: ags4-binaries
path: ags4-binaries
- name: Run AGS 4 Linux Game (Software)
run: |
cd ags4-binaries/Linux
chmod +x ags4-auto-test data/ags*
./ags4-auto-test --no-message-box --gfxdriver software --log-stdout=script:info,main:info --user-data-dir .
mv data/agstest.tap agstest-software.tap
- name: Upload Linux AGS 4 Test Log
uses: actions/upload-artifact@v4
with:
name: ags4-test-log-linux
path: ags4-binaries/Linux/agstest-*.tap
- name: Summary write
run: echo '### Linux Test Summary AGS 4 (Software)' >> $GITHUB_STEP_SUMMARY
- name: Linux Test Summary AGS 4 (Software)
uses: nikeee/tap-summary@dist
with:
path: "ags4-binaries/Linux/agstest-software.tap"
if: always()