@@ -36,21 +36,17 @@ jobs:
3636 steps :
3737 - uses : actions/cache@v4
3838 with :
39- path : ~/.haxelib
40- key : ${{ runner.os }}-haxe-${{ hashFiles('**/*.hxml') }}
41- Computer :
42- name : Computer
43- runs-on : ubuntu-latest
44- needs : setup-haxe
45- steps :
46- - name : Setup Computer
47- run : echo "Computer setup complete."
48- shell : bash
39+ path : |
40+ ~/.haxelib
41+ ~/.lime
42+ key : ${{ runner.os }}-haxe-${{ hashFiles('Project.xml', '**/*.hxml', '**/haxelib.json') }}
43+ restore-keys : |
44+ ${{ runner.os }}-haxe-
4945
5046 buildLinux :
5147 name : Build on Linux
5248 runs-on : ubuntu-latest
53- needs : Computer
49+ needs : setup-haxe
5450 steps :
5551 - uses : actions/checkout@v4.1.7
5652 - uses : krdlab/setup-haxe@master
@@ -60,33 +56,34 @@ jobs:
6056 sudo apt-get update
6157 sudo apt-get install -y libvlc-dev libvlccore-dev
6258 haxelib setup ~/haxelib
63- haxelib install hxcpp --quiet
59+ haxelib list | grep -q hxcpp || haxelib install hxcpp --quiet
6460 chmod +x ./setup/unix.sh
6561 ./setup/unix.sh
6662 - run : echo "${{ github.run_id }}" > VERSION
6763 - run : haxelib run lime build Project.xml linux --app-version="4.0.0-${{ github.run_id }}" $ARGS
6864 - uses : actions/upload-artifact@v4
6965 with :
7066 name : Linux Build
71- path : ' export/release/linux/bin'
67+ path : export/release/linux/bin
68+ if-no-files-found : warn
69+ compression-level : 9
7270
7371 buildWindows :
7472 name : Build on Windows
7573 runs-on : windows-latest
76- needs : Computer
74+ needs : setup-haxe
7775 continue-on-error : true
7876 strategy :
7977 matrix :
8078 arch : [64, 32]
81-
8279 steps :
8380 - uses : actions/checkout@v4.1.7
8481 - uses : krdlab/setup-haxe@master
8582 with :
8683 haxe-version : ${{ env.HAXE_VERSION }}
8784 - run : |
8885 haxelib setup C:/haxelib
89- haxelib install hxcpp --quiet
86+ haxelib list | findstr hxcpp || haxelib install hxcpp --quiet
9087 setup\windows.bat
9188 shell: cmd
9289 - run : echo "${{ github.run_id }}" > VERSION
@@ -97,20 +94,22 @@ jobs:
9794 with :
9895 name : Windows Build (x${{ matrix.arch }})
9996 path : export/${{ matrix.arch == 64 && 'release' || '32bit' }}/windows/bin
97+ if-no-files-found : warn
98+ compression-level : 9
10099
101100 buildMac :
102101 name : Build on macOS (Universal)
103102 runs-on : macos-13
104- needs : Computer
103+ needs : setup-haxe
105104 steps :
106105 - uses : actions/checkout@v4.1.7
107106 - uses : krdlab/setup-haxe@master
108107 with :
109108 haxe-version : ${{ env.HAXE_VERSION }}
110109 - run : |
111110 haxelib setup ~/haxelib
112- haxelib install hxcpp --quiet
113- haxelib install lime --quiet
111+ haxelib list | grep -q hxcpp || haxelib install hxcpp --quiet
112+ haxelib list | grep -q lime || haxelib install lime --quiet
114113 haxelib run lime rebuild lime mac -64
115114 haxelib run lime rebuild lime mac -Dmac-catalyst -Dmac-arm64
116115 chmod +x ./setup/unix.sh
@@ -121,7 +120,9 @@ jobs:
121120 with :
122121 name : macOS Build
123122 path : export/release/macos/bin
124-
123+ if-no-files-found : warn
124+ compression-level : 9
125+
125126 Mobile :
126127 name : Mobile
127128 runs-on : ubuntu-latest
@@ -130,8 +131,6 @@ jobs:
130131 steps :
131132 - name : Include Mobile Builds
132133 run : echo "Mobile builds are included."
133- shell : bash
134-
135134
136135 buildAndroid :
137136 name : Build Android
@@ -148,11 +147,18 @@ jobs:
148147 with :
149148 haxe-version : ${{ env.HAXE_VERSION }}
150149 - uses : android-actions/setup-android@v3
150+ - uses : actions/cache@v4
151+ with :
152+ path : |
153+ ~/.gradle/caches
154+ ~/.gradle/wrapper
155+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
156+ restore-keys : ${{ runner.os }}-gradle-
151157 - run : |
152158 haxelib setup ~/haxelib
153- haxelib install hxcpp --quiet
154- haxelib install lime --quiet
155- haxelib install openfl --quiet
159+ haxelib list | grep -q hxcpp || haxelib install hxcpp --quiet
160+ haxelib list | grep -q lime || haxelib install lime --quiet
161+ haxelib list | grep -q openfl || haxelib install openfl --quiet
156162 chmod +x ./setup/unix.sh
157163 ./setup/unix.sh
158164 - run : echo "${{ github.run_id }}" > VERSION
@@ -163,6 +169,8 @@ jobs:
163169 with :
164170 name : Android Build
165171 path : export/release/android/bin
172+ if-no-files-found : warn
173+ compression-level : 9
166174
167175 buildiOS :
168176 name : Build iOS
@@ -176,9 +184,9 @@ jobs:
176184 haxe-version : ${{ env.HAXE_VERSION }}
177185 - run : |
178186 haxelib setup ~/haxelib
179- haxelib install hxcpp --quiet
180- haxelib install lime --quiet
181- haxelib install openfl --quiet
187+ haxelib list | grep -q hxcpp || haxelib install hxcpp --quiet
188+ haxelib list | grep -q lime || haxelib install lime --quiet
189+ haxelib list | grep -q openfl || haxelib install openfl --quiet
182190 chmod +x ./setup/unix.sh
183191 ./setup/unix.sh
184192 - run : echo "${{ github.run_id }}" > VERSION
@@ -187,6 +195,8 @@ jobs:
187195 with :
188196 name : iOS Build
189197 path : export/release/ios/bin/
198+ if-no-files-found : warn
199+ compression-level : 9
190200
191201 notifyDiscord :
192202 name : 📣 Notify Discord
@@ -236,10 +246,10 @@ jobs:
236246 \"color\": $COLOR,
237247 \"fields\": [
238248 { \"name\": \"🔗 Workflow Run\", \"value\": \"[View Run]($RUN_URL)\" },
239- { \"name\": \"📦 Branch\", \"value\": \"$BRANCH\", \"inline\": true },
249+ { \"name\": \"📆 Branch\", \"value\": \"$BRANCH\", \"inline\": true },
240250 { \"name\": \"🔖 Commit\", \"value\": \"[View Commit]($COMMIT_URL)\", \"inline\": true }
241251 ],
242252 \"footer\": { \"text\": \"GitHub Actions • ${{ github.repository }}\" },
243253 \"timestamp\": \"$(date -u +%Y-%m-%dT%H:%M:%SZ)\"
244254 }]
245- }" $DISCORD_WEBHOOK
255+ }" $DISCORD_WEBHOOK
0 commit comments