@@ -13,17 +13,20 @@ jobs:
1313 strategy :
1414 matrix :
1515 include :
16- - name : bed
17- config : config/cc1-build/config.bed
18- output : bed.elf
19- toolchain : arm-none-eabi
20- - name : mainboard
21- config : config/cc1-build/config.mainboard
16+ - name : dsp
17+ config : config/cc1-build/config.dsp
18+ source : out/klipper.elf
2219 output : dsp.elf
2320 toolchain : xtensa-hifi4
24- - name : toolhead
25- config : config/cc1-build/config.toolhead
26- output : toolhead.elf
21+ - name : hotend
22+ config : config/cc1-build/config.hotend
23+ source : out/klipper.bin
24+ output : hotend.bin
25+ toolchain : arm-none-eabi
26+ - name : bed
27+ config : config/cc1-build/config.bed
28+ source : out/klipper.bin
29+ output : bed.bin
2730 toolchain : arm-none-eabi
2831
2932 steps :
@@ -51,13 +54,14 @@ jobs:
5154
5255 - name : Rename output
5356 run : |
54- cp out/klipper.elf out/ ${{ matrix.output }}
57+ cp ${{ matrix.source }} ${{ matrix.output }}
5558
5659 - name : Upload ${{ matrix.name }} artifact
5760 uses : actions/upload-artifact@v4
5861 with :
59- name : ${{ matrix.name }}-firmware
60- path : out/${{ matrix.output }}
62+ name : ${{ matrix.output }}
63+ path : ${{ matrix.output }}
64+ if-no-files-found : error
6165 retention-days : 30
6266
6367 collect-artifacts :
@@ -68,10 +72,16 @@ jobs:
6872 uses : actions/download-artifact@v4
6973 with :
7074 path : firmware
75+ merge-multiple : true
76+
77+ - name : Create combined zip
78+ run : |
79+ zip -j cc1-firmware-all.zip firmware/bed.bin firmware/hotend.bin firmware/dsp.elf
7180
72- - name : Combine artifacts
81+ - name : Upload combined artifact
7382 uses : actions/upload-artifact@v4
7483 with :
7584 name : cc1-firmware-all
76- path : firmware/
85+ path : cc1-firmware-all.zip
86+ if-no-files-found : error
7787 retention-days : 30
0 commit comments