66
77jobs :
88 build :
9+ name : Build Game
910 strategy :
1011 matrix :
1112 include :
@@ -42,10 +43,10 @@ jobs:
4243
4344 - name : Restore HMM Cache
4445 id : hmm-cache
45- uses : actions/cache/restore @main
46+ uses : actions/cache@main
4647 with :
4748 path : .haxelib
48- key : ${{runner.os}}-hmm-${{hashFiles('**/hmm.json')}}
49+ key : ${{runner.os}}-hmm
4950
5051 - name : Install Dependencies using HMM
5152 run : haxelib --global run hmm install -q
@@ -56,11 +57,18 @@ jobs:
5657 haxe compile.hxml
5758 cd ../../../../..
5859
59- - name : Save HMM Cache
60- uses : actions/cache/save@main
60+ - name : Restore hxcpp cache
61+ uses : actions/cache@v4
6162 with :
62- path : .haxelib
63- key : ${{steps.hmm-cache.outputs.cache-primary-key}}
63+ path : ${{runner.temp}}/hxcpp_cache
64+ key : ${{ runner.os }}-hxcpp
65+
66+ - name : Configure HXCPP Cache
67+ shell : bash
68+ run : |
69+ haxelib run hxcpp cache list
70+ echo "HXCPP_COMPILE_CACHE=${{runner.temp}}/hxcpp_cache" >> "$GITHUB_ENV"
71+ echo 'HXCPP_CACHE_MB="4096"' >> "$GITHUB_ENV"
6472
6573 - name : Install Linux Dependencies
6674 if : ${{runner.os == 'Linux'}}
@@ -131,156 +139,3 @@ jobs:
131139 with :
132140 name : TechNotDrip-Engine_ANDROID
133141 path : export/release/android/bin/app/build/outputs/apk/debug/*.apk
134-
135- # buildWindows:
136- # name: Build Windows Application
137- # runs-on: windows-latest
138-
139- # steps:
140- # - name: Download Source Code
141- # uses: actions/checkout@v4
142-
143- # - name: Setup Haxe
144- # uses: krdlab/setup-haxe@master
145- # with:
146- # haxe-version: 4.3.7
147-
148- # - name: Retrieve Haxelib Cache
149- # id: windows-haxelib-cache
150- # uses: actions/cache@v4
151- # with:
152- # path: |
153- # C:/haxelib/**
154- # .haxelib/**
155- # key: ${{ runner.os }}-haxelib-cache
156-
157- # - name: Install Haxe Libraries using HMM
158- # run: |
159- # haxelib install hmm --quiet
160- # haxelib run hmm install
161-
162- # - name: Compile HXCPP Build Tools
163- # run: |
164- # cd .haxelib/hxcpp/git/tools/hxcpp
165- # haxe compile.hxml
166- # cd ../../../../..
167-
168- # - name: Compile Application
169- # run: haxelib run lime build windows
170-
171- # - name: Upload Artifact
172- # uses: actions/upload-artifact@v4
173- # with:
174- # name: TechNotDrip-Engine_WINDOWS
175- # path: export/release/windows/bin/
176-
177- # buildAndroid:
178- # name: Build Android Application
179- # runs-on: ubuntu-latest
180-
181- # steps:
182- # - name: Download Source Code
183- # uses: actions/checkout@v4
184-
185- # - name: Setup Haxe
186- # uses: krdlab/setup-haxe@master
187- # with:
188- # haxe-version: 4.3.7
189-
190- # - name: Setup Android NDK
191- # uses: nttld/setup-ndk@v1
192- # id: ndk
193- # with:
194- # ndk-version: r21e
195-
196- # - name: Setup Java
197- # uses: actions/setup-java@v4
198- # with:
199- # distribution: 'oracle'
200- # java-version: '17'
201-
202- # - name: Retrieve Haxelib Cache
203- # id: android-haxelib-cache
204- # uses: actions/cache@v4
205- # with:
206- # path: |
207- # ~/haxelib/**
208- # .haxelib/**
209- # key: android-haxelib-cache
210-
211- # - name: Install Haxe Libraries using HMM
212- # run: |
213- # sudo apt install libvlccore-dev libvlc-dev -y -q
214- # haxelib install hmm --quiet
215- # haxelib run hmm install
216-
217- # - name: Compile HXCPP Build Tools
218- # run: |
219- # cd .haxelib/hxcpp/git/tools/hxcpp
220- # haxe compile.hxml
221- # cd ../../../../..
222-
223- # - name: Configure Android
224- # run: |
225- # haxelib run lime config ANDROID_SDK $ANDROID_HOME
226- # haxelib run lime config ANDROID_NDK_ROOT ${{ steps.ndk.outputs.ndk-path }}
227- # haxelib run lime config JAVA_HOME $JAVA_HOME
228- # haxelib run lime config ANDROID_SETUP true
229-
230- # - name: Compile Application
231- # run: haxelib run lime build android
232-
233- # - name: Upload Artifact
234- # uses: actions/upload-artifact@v4
235- # with:
236- # name: TechNotDrip-Engine_ANDROID
237- # path: export/release/android/bin/app/build/outputs/apk/debug/*.apk
238-
239- # buildiOS:
240- # name: Build iOS Application
241- # runs-on: macos-latest
242-
243- # steps:
244- # - name: Download Source Code
245- # uses: actions/checkout@v4
246-
247- # - name: Setup Haxe
248- # uses: krdlab/setup-haxe@master
249- # with:
250- # haxe-version: 4.3.7
251-
252- # - name: Retrieve Haxelib Cache
253- # id: ios-haxelib-cache
254- # uses: actions/cache@v4
255- # with:
256- # path: |
257- # ~/haxelib/**
258- # .haxelib/**
259- # key: ios-haxelib-cache
260-
261- # - name: Install Haxe Libraries using HMM
262- # run: |
263- # haxelib install hmm --quiet
264- # haxelib run hmm install
265-
266- # - name: Compile HXCPP Build Tools
267- # run: |
268- # cd .haxelib/hxcpp/git/tools/hxcpp
269- # haxe compile.hxml
270- # cd ../../../../..
271-
272- # - name: Compile Application
273- # run: haxelib run lime build ios -nosign
274-
275- # - name: Zip up IPA File
276- # run: |
277- # cd export/release/ios/build/Release-iphoneos
278- # mkdir Payload
279- # mv *.app Payload
280- # zip -r TechNotDrip.ipa Payload
281-
282- # - name: Upload Artifact
283- # uses: actions/upload-artifact@v4
284- # with:
285- # name: TechNotDrip-Engine_IOS
286- # path: export/release/ios/build/Release-iphoneos/*.ipa
0 commit comments