-
Notifications
You must be signed in to change notification settings - Fork 40
161 lines (132 loc) · 4.82 KB
/
windows.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
name: windows
on:
push:
tags:
- "v*"
pull_request:
tags:
- "v*"
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .
# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: Release
jobs:
build:
runs-on: windows-2019
if: github.repository == 'hzqst/MetaHookSv'
steps:
- uses: hzqst/[email protected]
- name: Init dependencies
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-initdeps.bat
shell: cmd
- name: Build capstone
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-capstone.bat
shell: cmd
- name: Build bullet3
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-bullet3.bat
shell: cmd
- name: Build bullet3 (AVX2)
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-bullet3-avx2.bat
shell: cmd
- name: Build glew
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-glew.bat
shell: cmd
- name: Build MetaHook.exe
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-MetaHook.bat
shell: cmd
- name: Build BulletPhysics.dll
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-BulletPhysics.bat
shell: cmd
- name: Build BulletPhysics.dll (AVX2)
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-BulletPhysics-AVX2.bat
shell: cmd
- name: Build CaptionMod.dll
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-CaptionMod.bat
shell: cmd
- name: Build SCModelDownloader.dll
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-SCModelDownloader.bat
shell: cmd
- name: Build CommunicationDemo.dll
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-CommunicationDemo.bat
shell: cmd
- name: Build DontFlushSoundCache.dll
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-DontFlushSoundCache.bat
shell: cmd
- name: Build PrecacheManager.dll
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-PrecacheManager.bat
shell: cmd
- name: Build Renderer.dll
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-Renderer.bat
shell: cmd
- name: Build Renderer.dll (AVX2)
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-Renderer-AVX2.bat
shell: cmd
- name: Build SteamScreenshots.dll
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-SteamScreenshots.bat
shell: cmd
- name: Build StudioEvents.dll
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-StudioEvents.bat
shell: cmd
- name: Create Output directory
working-directory: ${{env.GITHUB_WORKSPACE}}
run: mkdir Output
shell: cmd
- name: Copy Build to Output
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
mkdir "Output\Build"
xcopy "Build" "Output\Build" /y /e
shell: cmd
- name: Copy SteamAppsLocation to Output
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
mkdir "Output\SteamAppsLocation"
copy "SteamAppsLocation\SteamAppsLocation.exe" "Output\SteamAppsLocation" /y
copy "SteamAppsLocation\steam_appid.txt" "Output\SteamAppsLocation" /y
copy "SteamAppsLocation\steam_api.dll" "Output\SteamAppsLocation" /y
shell: cmd
- name: Copy install bat to Output
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
copy "install-to-SvenCoop.bat" "Output" /y
copy "install-to-OpposingForce.bat" "Output" /y
copy "install-to-HalfLife.bat" "Output" /y
copy "install-to-DayOfDefeat.bat" "Output" /y
copy "install-to-CSCZDeletedScenes.bat" "Output" /y
copy "install-to-CounterStrike.bat" "Output" /y
copy "install-to-ConditionZero.bat" "Output" /y
copy "install-to-BlueShift.bat" "Output" /y
copy "install-to-Echoes.bat" "Output" /y
shell: cmd
- name: Zipping All
uses: vimtor/action-zip@v1
with:
files: Output/
dest: MetaHookSv-windows-x86.zip
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: MetaHookSv-${{ github.ref }}
files: |
MetaHookSv-windows-x86.zip