@@ -221,32 +221,38 @@ jobs:
221
221
222
222
# Ubuntu
223
223
- name : Install dependencies
224
- if : inputs.os == 'ubuntu-20.04'
224
+ if : inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04'
225
+ env :
226
+ apt-cmd : ${{ (inputs.os == 'ubuntu-20.04' && 'apt-fast') || (inputs.os == 'ubuntu-24.04' && 'sudo apt-get') || '' }}
227
+ webkit-ver : ${{ (inputs.os == 'ubuntu-20.04' && '4.0') || (inputs.os == 'ubuntu-24.04' && '4.1') || '' }}
228
+ libfuse2-pkg : ${{ (inputs.os == 'ubuntu-20.04' && 'libfuse2') || (inputs.os == 'ubuntu-24.04' && 'libfuse2t64') || '' }}
225
229
run : |
226
- sudo apt-get update
227
- sudo apt-get install -y autoconf build-essential cmake curl eglexternalplatform-dev \
230
+ ${{ env. apt-cmd }} update
231
+ ${{ env. apt-cmd }} install -y autoconf build-essential cmake curl eglexternalplatform-dev \
228
232
extra-cmake-modules file git libcairo2-dev libcurl4-openssl-dev libdbus-1-dev libglew-dev libglu1-mesa-dev \
229
233
libglu1-mesa-dev libgstreamer1.0-dev libgstreamerd-3-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev \
230
234
libgtk-3-dev libgtk-3-dev libmspack-dev libosmesa6-dev libsecret-1-dev libsoup2.4-dev libssl-dev libudev-dev libwayland-dev \
231
- libwebkit2gtk-4.0- dev libxkbcommon-dev locales locales-all m4 pkgconf sudo wayland-protocols wget
235
+ libwebkit2gtk-${{ env.webkit-ver }}- dev libxkbcommon-dev locales locales-all m4 pkgconf sudo wayland-protocols wget ${{ env.libfuse2-pkg }}
232
236
233
237
- name : Install dependencies from BuildLinux.sh
234
- if : inputs.os == 'ubuntu-20.04'
238
+ if : inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04'
235
239
shell : bash
236
240
run : sudo ./BuildLinux.sh -ur
237
241
238
242
- name : Fix permissions
239
- if : inputs.os == 'ubuntu-20.04'
243
+ if : inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04'
240
244
shell : bash
241
245
run : sudo chown $USER -R ./
242
246
243
247
- name : Build slicer
244
- if : inputs.os == 'ubuntu-20.04'
248
+ if : inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04'
245
249
shell : bash
250
+ env :
251
+ ubuntu-ver-str : ${{ (inputs.os == 'ubuntu-24.04' && '_Ubuntu2404') || '' }}
246
252
run : |
247
253
./BuildLinux.sh -isr
248
- mv -n ./build/OrcaSlicer_Linux_V${{ env.ver_pure }}.AppImage ./build/OrcaSlicer_Linux_ ${{ env.ver }}.AppImage
249
- chmod +x ./build/OrcaSlicer_Linux_ ${{ env.ver }}.AppImage
254
+ mv -n ./build/OrcaSlicer_Linux_V${{ env.ver_pure }}.AppImage ./build/OrcaSlicer_Linux${{ env.ubuntu-ver-str }}_ ${{ env.ver }}.AppImage
255
+ chmod +x ./build/OrcaSlicer_Linux${{ env.ubuntu-ver-str }}_ ${{ env.ver }}.AppImage
250
256
251
257
- name : Build orca_custom_preset_tests
252
258
if : github.ref == 'refs/heads/main' && inputs.os == 'ubuntu-20.04'
@@ -258,19 +264,24 @@ jobs:
258
264
zip -r orca_custom_preset_tests.zip user/
259
265
260
266
- name : Upload artifacts Ubuntu
261
- if : ${{ ! env.ACT && inputs.os == 'ubuntu-20.04' }}
267
+ if : ${{ ! env.ACT && inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04' }}
268
+ env :
269
+ ubuntu-ver : ${{ (inputs.os == 'ubuntu-20.04' && '2004') || (inputs.os == 'ubuntu-24.04' && '2404') || '' }}
270
+ ubuntu-ver-str : ${{ (inputs.os == 'ubuntu-24.04' && '_Ubuntu2404') || '' }}
262
271
uses : actions/upload-artifact@v4
263
272
with :
264
- name : OrcaSlicer_Linux_ ${{ env.ver }}
265
- path : ' ./build/OrcaSlicer_Linux_ ${{ env.ver }}.AppImage'
273
+ name : OrcaSlicer_Linux_ubuntu_${{ env.ubuntu-ver }}_ ${{ env.ver }}
274
+ path : ' ./build/OrcaSlicer_Linux${{ env.ubuntu-ver-str }}_ ${{ env.ver }}.AppImage'
266
275
267
276
- name : Deploy Ubuntu release
268
- if : ${{ ! env.ACT && github.ref == 'refs/heads/main' && inputs.os == 'ubuntu-20.04' }}
277
+ if : ${{ ! env.ACT && github.ref == 'refs/heads/main' && (inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04') }}
278
+ env :
279
+ ubuntu-ver-str : ${{ (inputs.os == 'ubuntu-24.04' && '_Ubuntu2404') || '' }}
269
280
uses : WebFreak001/deploy-nightly@v3.1.0
270
281
with :
271
282
upload_url : https://uploads.github.com/repos/SoftFever/OrcaSlicer/releases/137995723/assets{?name,label}
272
283
release_id : 137995723
273
- asset_path : ./build/OrcaSlicer_Linux_ ${{ env.ver }}.AppImage
284
+ asset_path : ./build/OrcaSlicer_Linux${{ env.ubuntu-ver-str }}_ ${{ env.ver }}.AppImage
274
285
asset_name : OrcaSlicer_Linux_${{ env.ver }}.AppImage
275
286
asset_content_type : application/octet-stream
276
287
max_releases : 1 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted
0 commit comments