7
7
# Allows you to run this workflow manually from the Actions tab
8
8
workflow_dispatch :
9
9
10
- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
11
10
jobs :
12
- # This workflow contains a single job called "build"
13
11
build :
14
- # The type of runner that the job will run on
15
12
runs-on : windows-latest
16
13
if : " !contains(github.event.head_commit.message, '-noci')"
17
14
18
- # Steps represent a sequence of tasks that will be executed as part of the job
19
15
steps :
20
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
16
+ # Checkout latest with submodules
21
17
- uses : actions/checkout@v2
22
18
with :
23
19
submodules : recursive
24
-
20
+
21
+ # Setup tools
25
22
- name : Setup msbuild
26
23
uses : microsoft/setup-msbuild@v1
27
24
@@ -32,113 +29,84 @@ jobs:
32
29
nuget-version : ' 5.x'
33
30
34
31
# Build Il2CppAssemblyUnhollower
35
- - name : Build Il2CppAssemblyUnhollower
36
- shell : cmd
37
- run : msbuild lib\Il2CppAssemblyUnhollower\UnhollowerBaseLib\UnhollowerBaseLib.csproj -t:Restore -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release
38
-
39
- # Restore mcs nuget
40
- - name : Restore mcs nuget
41
- run : nuget restore lib\mcs-unity\mcs.sln
32
+ - run : msbuild lib\Il2CppAssemblyUnhollower\UnhollowerBaseLib\UnhollowerBaseLib.csproj -t:Restore -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release
42
33
43
34
# Build mcs
44
- - name : Build mcs
45
- shell : cmd
46
- run : msbuild lib\mcs-unity\mcs\mcs.csproj -t:Restore -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release
47
-
48
- # Restore NuGet packages
49
- - name : Restore UnityExplorer nuget
50
- run : nuget restore src\UnityExplorer.sln
35
+ - run : nuget restore lib\mcs-unity\mcs.sln
36
+ - run : msbuild lib\mcs-unity\mcs\mcs.csproj -t:Restore -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release
51
37
52
- # Build UnityExplorer Releases
53
-
54
- - name : Build UnityExplorer BepInEx Il2Cpp
55
- shell : cmd
56
- run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_BIE_Cpp
57
-
58
- - name : Build UnityExplorer BepInEx 5 Mono
59
- shell : cmd
60
- run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_BIE5_Mono
61
-
62
- - name : Build UnityExplorer BepInEx 6 Mono
63
- shell : cmd
64
- run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_BIE6_Mono
65
-
66
- - name : Build UnityExplorer MelonLoader Il2Cpp
67
- shell : cmd
68
- run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_ML_Cpp
69
-
70
- - name : Build UnityExplorer MelonLoader Mono
71
- shell : cmd
72
- run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_ML_Mono
73
-
74
- - name : Build UnityExplorer MelonLoader Legacy Il2Cpp
75
- shell : cmd
76
- run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_MLLegacy_Cpp
38
+ # Build UnityExplorer releases, and upload artifacts
77
39
78
- - name : Build UnityExplorer MelonLoader Legacy Mono
79
- shell : cmd
80
- run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_MLLegacy_Mono
40
+ - run : nuget restore src\UnityExplorer.sln
81
41
82
- - name : Build UnityExplorer Standalone Il2Cpp
83
- shell : cmd
84
- run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_STANDALONE_Cpp
85
-
86
- - name : Build UnityExplorer Standalone Mono
87
- shell : cmd
88
- run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_STANDALONE_Mono
89
-
90
- # Upload artifacts
42
+ # BepInEx Il2Cpp
43
+ - run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_BIE_Cpp
91
44
92
45
- uses : actions/upload-artifact@v2
93
- name : Upload BepInEx Il2Cpp zip
94
46
with :
95
47
name : UnityExplorer.BepInEx.Il2Cpp
96
48
path : ./Release/UnityExplorer.BepInEx.Il2Cpp/*
49
+
50
+ # BepInEx 5 Mono
51
+ - run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_BIE5_Mono
97
52
98
53
- uses : actions/upload-artifact@v2
99
- name : Upload BepInEx 5 Mono zip
100
54
with :
101
55
name : UnityExplorer.BepInEx5.Mono
102
56
path : ./Release/UnityExplorer.BepInEx5.Mono/*
103
57
58
+ # BepInEx 6 Mono
59
+ - run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_BIE6_Mono
60
+
104
61
- uses : actions/upload-artifact@v2
105
- name : Upload BepInEx 6 Mono zip
106
62
with :
107
63
name : UnityExplorer.BepInEx6.Mono
108
64
path : ./Release/UnityExplorer.BepInEx6.Mono/*
109
65
66
+ # MelonLoader Il2Cpp
67
+ - run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_ML_Cpp
68
+
110
69
- uses : actions/upload-artifact@v2
111
- name : Upload MelonLoader Il2Cpp zip
112
70
with :
113
71
name : UnityExplorer.MelonLoader.Il2Cpp
114
72
path : ./Release/UnityExplorer.MelonLoader.Il2Cpp/*
115
73
74
+ # MelonLoader Mono
75
+ - run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_ML_Mono
76
+
116
77
- uses : actions/upload-artifact@v2
117
- name : Upload MelonLoader Mono zip
118
78
with :
119
79
name : UnityExplorer.MelonLoader.Mono
120
80
path : ./Release/UnityExplorer.MelonLoader.Mono/*
121
81
82
+ # MelonLoader 0.3.0 Il2Cpp
83
+ - run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_MLLegacy_Cpp
84
+
122
85
- uses : actions/upload-artifact@v2
123
- name : Upload MelonLoader Legacy Il2Cpp zip
124
86
with :
125
87
name : UnityExplorer.MelonLoader_Legacy.Il2Cpp
126
88
path : ./Release/UnityExplorer.MelonLoader_Legacy.Il2Cpp/*
127
89
90
+ # MelonLoader 0.3.0 Mono
91
+ - run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_MLLegacy_Mono
92
+
128
93
- uses : actions/upload-artifact@v2
129
- name : Upload MelonLoader Legacy Mono zip
130
94
with :
131
95
name : UnityExplorer.MelonLoader_Legacy.Mono
132
96
path : ./Release/UnityExplorer.MelonLoader_Legacy.Mono/*
133
97
98
+ # Standalone Il2Cpp
99
+ - run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_STANDALONE_Cpp
100
+
134
101
- uses : actions/upload-artifact@v2
135
- name : Upload Standalone Il2Cpp zip
136
102
with :
137
103
name : UnityExplorer.Standalone.Il2Cpp
138
104
path : ./Release/UnityExplorer.Standalone.Il2Cpp/*
139
105
106
+ # Standalone Mono
107
+ - run : msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_STANDALONE_Mono
108
+
140
109
- uses : actions/upload-artifact@v2
141
- name : Upload Standalone Mono zip
142
110
with :
143
111
name : UnityExplorer.Standalone.Mono
144
112
path : ./Release/UnityExplorer.Standalone.Mono/*
0 commit comments