@@ -3,8 +3,36 @@ name: Build
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
+ test :
7
+ runs-on : windows-latest
8
+
9
+ steps :
10
+ # setup
11
+ - uses : actions/checkout@v4
12
+ with :
13
+ submodules : true
14
+
15
+ -
uses :
microsoft/[email protected]
16
+ - uses : ilammy/msvc-dev-cmd@v1
17
+
18
+ - name : Download premake5
19
+ run : |
20
+ curl.exe -o premake5.zip -L https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-windows.zip
21
+ tar -xf premake5.zip
22
+
23
+ - name : Generate project files
24
+ run : .\premake5 vs2022 --with-tests
25
+
26
+ # tests
27
+ - name : Build tests
28
+ run : MSBuild TRAE-menu-hook.sln /t:Tests /p:Configuration=Release /p:Platform=TR7
29
+
30
+ - name : Test
31
+ run : .\bin\TR7\Release\Tests.exe
32
+
6
33
build :
7
34
runs-on : windows-latest
35
+ needs : test
8
36
9
37
steps :
10
38
# setup
@@ -29,16 +57,23 @@ jobs:
29
57
run : .\premake5 vs2022
30
58
31
59
# compile
60
+ - name : Build Legend
61
+ run : MSBuild /p:Configuration=Release /p:Platform=TR7
62
+
32
63
- name : Build Anniversary
33
64
run : MSBuild /p:Configuration=Release /p:Platform=TRAE
34
65
35
66
- name : Build Underworld
36
67
run : MSBuild /p:Configuration=Release /p:Platform=TR8
37
68
38
- - name : Build Legend
39
- run : MSBuild /p:Configuration=Release /p:Platform=TR7
40
-
41
69
# upload
70
+ - uses : actions/upload-artifact@v3
71
+ with :
72
+ name : Legend
73
+ path : |
74
+ bin/TR7/Release/TR7-Menu-Hook.asi
75
+ bin/TR7/Release/TR7-Menu-Hook.pdb
76
+
42
77
- uses : actions/upload-artifact@v3
43
78
with :
44
79
name : Anniversary
52
87
path : |
53
88
bin/TR8/Release/TR8-Menu-Hook.asi
54
89
bin/TR8/Release/TR8-Menu-Hook.pdb
55
-
56
- - uses : actions/upload-artifact@v3
57
- with :
58
- name : Legend
59
- path : |
60
- bin/TR7/Release/TR7-Menu-Hook.asi
61
- bin/TR7/Release/TR7-Menu-Hook.pdb
0 commit comments