This repository was archived by the owner on Feb 25, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
224 lines (198 loc) · 7.6 KB
/
release.yml
File metadata and controls
224 lines (198 loc) · 7.6 KB
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
name: Release
on: workflow_dispatch
permissions:
contents: write
discussions: write
env:
PROJECT_NAME: HorrorPackage
jobs:
build:
name: ${{ matrix.name }}
strategy:
matrix:
include:
- name: Windows i686
os: windows-2025
buildArgs: "windows -final -32 -D HXCPP_M32 -D officialBuild"
assetType: S3TC
artifactName: windowsBuild-i686
artifactPath: export\release\windows\bin\*
- name: Windows x86_64
os: windows-2025
buildArgs: "windows -final -64 -D HXCPP_M64 -D officialBuild"
assetType: S3TC
artifactName: windowsBuild-x86_64
artifactPath: export\release\windows\bin\*
- name: Windows ARM64
os: windows-2025
buildArgs: "windows -final -arm64 -D HXCPP_ARM64 -D officialBuild"
assetType: S3TC
artifactName: windowsBuild-arm64
artifactPath: export\release\windows\bin\*
- name: Linux i686
os: ubuntu-22.04
buildArgs: "linux -final -32 -D HXCPP_M32 -D officialBuild"
assetType: S3TC
artifactName: linuxBuild-i686
artifactPath: export/release/linux/bin/*
- name: Linux x86_64
os: ubuntu-22.04
buildArgs: "linux -final -64 -D HXCPP_M64 -D officialBuild"
assetType: S3TC
artifactName: linuxBuild-x86_64
artifactPath: export/release/linux/bin/*
- name: Linux ARMV7
os: ubuntu-22.04-arm
buildArgs: "linux -final -armv7 -D HXCPP_ARMV7 -D officialBuild"
assetType: ASTC
artifactName: linuxBuild-armv7
artifactPath: export/release/linux/bin/*
- name: Linux ARM64
os: ubuntu-22.04-arm
buildArgs: "linux -final -arm64 -D HXCPP_ARM64 -D officialBuild"
assetType: ASTC
artifactName: linuxBuild-arm64
artifactPath: export/release/linux/bin/*
- name: macOS x86_64
os: macos-15
buildArgs: "mac -final -64 -D HXCPP_M64 -D officialBuild"
assetType: S3TC
artifactName: macOSBuild-x86_64
artifactPath: export/release/macos/bin/*
- name: macOS ARM64
os: macos-15
buildArgs: "mac -final -arm64 -D HXCPP_ARM64 -D officialBuild"
assetType: S3TC
artifactName: macOSBuild-arm64
artifactPath: export/release/macos/bin/*
- name: Android
os: macos-26
buildArgs: "android -final -D officialBuild"
assetType: ASTC
artifactName: androidBuild
artifactPath: "export/release/android/bin/app/build/outputs/apk/release/*.apk"
- name: iOS
os: macos-15
buildArgs: "ios -final -nosign -D officialBuild"
assetType: ASTC
artifactName: iOSBuild
artifactPath: "export/release/ios/build/Release-iphoneos/*.ipa"
uses: ./.github/workflows/build.yml
with:
name: ${{ matrix.name }}
os: ${{ matrix.os }}
buildArgs: ${{ matrix.buildArgs }}
assetType: ${{ matrix.assetType }}
artifactName: ${{ matrix.artifactName }}
artifactPath: ${{ matrix.artifactPath }}
Releaser:
needs: [build]
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Download Android Build
uses: actions/download-artifact@main
with:
name: androidBuild-ASTC
path: /home/runner
- name: Move Android File
run: mv /home/runner/${{ env.PROJECT_NAME }}-release.apk /home/runner/${{ env.PROJECT_NAME }}-ASTC-Android.apk
- name: Download iOS Build
uses: actions/download-artifact@main
with:
name: iOSBuild-ASTC
path: ${{ github.workspace }}
- name: Move iOS File
run: mv ${{ github.workspace }}/${{ env.PROJECT_NAME }}.ipa /home/runner/${{ env.PROJECT_NAME }}-ASTC-iOS.ipa
- name: Download Linux i686 Build
uses: actions/download-artifact@main
with:
name: linuxBuild-i686-S3TC
path: /home/runner/linuxBuild-i686
- name: Tar Linux i686 Build For Release
run: |
cd /home/runner/linuxBuild-i686
tar czf "/home/runner/${{ env.PROJECT_NAME }}-S3TC-linux-i686.tar" .
- name: Download Linux x86_64 Build
uses: actions/download-artifact@main
with:
name: linuxBuild-x86_64-S3TC
path: /home/runner/linuxBuild-x86_64
- name: Tar Linux x86_64 Build For Release
run: |
cd /home/runner/linuxBuild-x86_64
tar czf "/home/runner/${{ env.PROJECT_NAME }}-S3TC-linux-x86_64.tar" .
- name: Download Linux ARMV7 Build
uses: actions/download-artifact@main
with:
name: linuxBuild-armv7-ASTC
path: /home/runner/linuxBuild-armv7
- name: Tar Linux ARMV7 Build For Release
run: |
cd /home/runner/linuxBuild-armv7
tar czf "/home/runner/${{ env.PROJECT_NAME }}-ASTC-linux-armv7.tar" .
- name: Download Linux ARM64 Build
uses: actions/download-artifact@main
with:
name: linuxBuild-arm64-ASTC
path: /home/runner/linuxBuild-arm64
- name: Tar Linux ARM64 Build For Release
run: |
cd /home/runner/linuxBuild-arm64
tar czf "/home/runner/${{ env.PROJECT_NAME }}-ASTC-linux-arm64.tar" .
- name: Download macOS ARM64 Build
uses: actions/download-artifact@main
with:
name: macOSBuild-arm64-S3TC
path: /home/runner/macOSBuild-arm64
- name: Tar macOS ARM64 Build For Release
run: |
cd /home/runner/macOSBuild-arm64
tar czf "/home/runner/${{ env.PROJECT_NAME }}-S3TC-macOS-arm64.tar" .
- name: Download macOS x86_64 Build
uses: actions/download-artifact@main
with:
name: macOSBuild-x86_64-S3TC
path: /home/runner/macOSBuild-x86_64
- name: Tar macOS x86_64 Build For Release
run: |
cd /home/runner/macOSBuild-x86_64
tar czf "/home/runner/${{ env.PROJECT_NAME }}-S3TC-macOS-x86_64.tar" .
- name: Download Windows i686 Build
uses: actions/download-artifact@main
with:
name: windowsBuild-i686-S3TC
path: /home/runner/windowsBuild-i686
- name: Zip Windows i686 Build For Release
run: |
cd /home/runner/windowsBuild-i686
zip -r "/home/runner/${{ env.PROJECT_NAME }}-S3TC-windows-i686.zip" .
- name: Download Windows x86_64 Build
uses: actions/download-artifact@main
with:
name: windowsBuild-x86_64-S3TC
path: /home/runner/windowsBuild-x86_64
- name: Zip Windows x86_64 Build For Release
run: |
cd /home/runner/windowsBuild-x86_64
zip -r "/home/runner/${{ env.PROJECT_NAME }}-S3TC-windows-x86_64.zip" .
- name: Download Windows ARM64 Build
uses: actions/download-artifact@main
with:
name: windowsBuild-arm64-S3TC
path: /home/runner/windowsBuild-arm64
- name: Zip Windows ARM64 Build For Release
run: |
cd /home/runner/windowsBuild-arm64
zip -r "/home/runner/${{ env.PROJECT_NAME }}-S3TC-windows-arm64.zip" .
- name: Publish The Release
uses: softprops/action-gh-release@v2
with:
name: "2.5.0"
tag_name: "2.5.0"
prerelease: false
files: |
/home/runner/*.apk
/home/runner/*.ipa
/home/runner/*.tar
/home/runner/*.zip