@@ -58,58 +58,50 @@ TTMP=$([[ "$T13" = true ]] && echo "_SPRT13")
5858MPTMP=$( [[ " $BMP " = true ]] && echo " _BMP" )
5959
6060# Determine the configuration folder based on the job ID using a case statement
61- case " $JOB_ID " in
62- * " Default" * ) CONFIG_FOLDER=" Default" ;;
63- * " MM" * ) CONFIG_FOLDER=" MM" ;;
64- * " BLT" * ) CONFIG_FOLDER=" BLT" ;;
65- * " UBL" * ) CONFIG_FOLDER=" UBL" ;;
66- * )
67- echo " Error: Unknown JOB_ID: '$JOB_ID '"
68- exit 1
69- ;;
70- esac
71-
61+ if [[ " $JOB_ID " == * " Default" * ]]; then
62+ CONFIG_FOLDER=" Default"
63+ fi
64+ if [[ " $JOB_ID " == * " MM" * ]]; then
65+ CONFIG_FOLDER=" MM"
66+ fi
67+ if [[ " $JOB_ID " == * " BLT" * ]]; then
68+ CONFIG_FOLDER=" BLT"
69+ fi
70+ if [[ " $JOB_ID " == * " UBL" * ]]; then
71+ CONFIG_FOLDER=" UBL"
72+ fi
7273if [[ " $JOB_ID " == * " IND" * && (" $AQUILA_VER " == " _GD32" || " $AQUILA_VER " == " _N32" ) ]]; then
7374 PRINTER_MODEL=" Voxelab Aquila/X3"
7475fi
7576
76- # Clear and copy configuration files
77- function prepare_config_files {
78- > Marlin/Configuration.h
79- > Marlin/Configuration_adv.h
80- > Marlin/Version.h
81- cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration.h" Marlin/Configuration.h
82- cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration_adv.h" Marlin/Configuration_adv.h
83- cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Version.h" Marlin/Version.h
84- sed -i " s/default_envs =.*/default_envs = ${PLATFORMIO_ENV} /" platformio.ini
85- }
86-
87- # Prepare output file
88- function prepare_output_file {
89- # Run the build
90- pio run
91- if [ $? -ne 0 ]; then
92- echo " Error: PlatformIO build failed."
93- exit 1
94- fi
95- mkdir temp
96- mv .pio/build/${PLATFORMIO_ENV} /* .bin temp/build.bin
97- filename=" ${DTMP} Aquila${AVTMP}${STMP}${TTMP}${MPTMP} _${CONFIG_FOLDER}${EXTMP}${ISTMP}${TPTMP} $( date +" -%m-%d" ) .bin"
98- echo " filename=$filename " >> " $GITHUB_OUTPUT "
99- }
100-
10177# Apply conditional defines
10278case " $JOB_ID " in
10379
10480 ' Build Default Files A' )
105- prepare_config_files
81+ > Marlin/Configuration.h
82+ > Marlin/Configuration_adv.h
83+ > Marlin/Version.h
84+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration.h" Marlin/Configuration.h
85+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration_adv.h" Marlin/Configuration_adv.h
86+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Version.h" Marlin/Version.h
87+ sed -i " s/default_envs =.*/default_envs = ${PLATFORMIO_ENV} /" platformio.ini
10688 if ($TJC ); then TJEMP=; REMP=' \/\/' ; else TJEMP=' \/\/' ; REMP=; fi ;
10789 sed -i " s/.*#define TJC_DISPLAY/${TJEMP} #define TJC_DISPLAY/" Marlin/Configuration.h
10890 sed -i " s/.*#define REVERSE_ENCODER_DIRECTION/${REMP} #define REVERSE_ENCODER_DIRECTION/" Marlin/Configuration.h
109- prepare_output_file
91+ pio run
92+ mkdir temp
93+ mv .pio/build/${PLATFORMIO_ENV} /* .bin temp/build.bin
94+ filename=" ${DTMP} Aquila${AVTMP}${STMP}${TTMP}${MPTMP} _${CONFIG_FOLDER}${EXTMP}${ISTMP}${TPTMP} $( date +" -%m-%d" ) .bin"
95+ echo " filename=$filename " >> " $GITHUB_OUTPUT "
11096 ;;
11197 ' Build MM EX Files A' )
112- prepare_config_files
98+ > Marlin/Configuration.h
99+ > Marlin/Configuration_adv.h
100+ > Marlin/Version.h
101+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration.h" Marlin/Configuration.h
102+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration_adv.h" Marlin/Configuration_adv.h
103+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Version.h" Marlin/Version.h
104+ sed -i " s/default_envs =.*/default_envs = ${PLATFORMIO_ENV} /" platformio.ini
113105 if ($IS ); then STEMP=; else STEMP=' \/\/' ; fi ;
114106 sed -i " s/.*#define INPUT_SHAPING_X/${STEMP} #define INPUT_SHAPING_X/" Marlin/Configuration_adv.h
115107 sed -i " s/.*#define INPUT_SHAPING_Y/${STEMP} #define INPUT_SHAPING_Y/" Marlin/Configuration_adv.h
@@ -123,10 +115,20 @@ case "$JOB_ID" in
123115 if ($T5 ); then THMP=" 5" ; DSMP=" 98" ; elif ($T13 ); then THMP=" 13" ; DSMP=" 424.9" ; else THMP=" 1" ; DSMP=" 98" ; fi ;
124116 sed -i " s/^#define TEMP_SENSOR_0.*/#define TEMP_SENSOR_0 ${THMP} /" Marlin/Configuration.h
125117 sed -i " s/.*#define DEFAULT_AXIS_STEPS_PER_UNIT.*/#define DEFAULT_AXIS_STEPS_PER_UNIT { 80, 80, 400, ${DSMP} }/" Marlin/Configuration.h
126- prepare_output_file
118+ pio run
119+ mkdir temp
120+ mv .pio/build/${PLATFORMIO_ENV} /* .bin temp/build.bin
121+ filename=" ${DTMP} Aquila${AVTMP}${STMP}${TTMP}${MPTMP} _${CONFIG_FOLDER}${EXTMP}${ISTMP}${TPTMP} $( date +" -%m-%d" ) .bin"
122+ echo " filename=$filename " >> " $GITHUB_OUTPUT "
127123 ;;
128124 ' Build UBL EX Files A' )
129- prepare_config_files
125+ > Marlin/Configuration.h
126+ > Marlin/Configuration_adv.h
127+ > Marlin/Version.h
128+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration.h" Marlin/Configuration.h
129+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration_adv.h" Marlin/Configuration_adv.h
130+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Version.h" Marlin/Version.h
131+ sed -i " s/default_envs =.*/default_envs = ${PLATFORMIO_ENV} /" platformio.ini
130132 if ($IS ); then STEMP=; CTEMP=' \/\/' ; else STEMP=' \/\/' ; CTEMP=; fi ;
131133 sed -i " s/.*#define INPUT_SHAPING_X/${STEMP} #define INPUT_SHAPING_X/" Marlin/Configuration_adv.h
132134 sed -i " s/.*#define INPUT_SHAPING_Y/${STEMP} #define INPUT_SHAPING_Y/" Marlin/Configuration_adv.h
@@ -154,10 +156,20 @@ case "$JOB_ID" in
154156 sed -i " s/.*#define BLTOUCH/${MPEMP} #define BLTOUCH/" Marlin/Configuration.h
155157 sed -i " s/.*#define BIQU_MICROPROBE_V2/${MPDEMP} #define BIQU_MICROPROBE_V2/" Marlin/Configuration.h
156158 sed -i " s/.*#define PROBE_ENABLE_DISABLE/${MPDEMP} #define PROBE_ENABLE_DISABLE/" Marlin/Configuration.h
157- prepare_output_file
159+ pio run
160+ mkdir temp
161+ mv .pio/build/${PLATFORMIO_ENV} /* .bin temp/build.bin
162+ filename=" ${DTMP} Aquila${AVTMP}${STMP}${TTMP}${MPTMP} _${CONFIG_FOLDER}${EXTMP}${ISTMP}${TPTMP} $( date +" -%m-%d" ) .bin"
163+ echo " filename=$filename " >> " $GITHUB_OUTPUT "
158164 ;;
159165 ' Build UBL EX IND Files A' )
160- prepare_config_files
166+ > Marlin/Configuration.h
167+ > Marlin/Configuration_adv.h
168+ > Marlin/Version.h
169+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration.h" Marlin/Configuration.h
170+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration_adv.h" Marlin/Configuration_adv.h
171+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Version.h" Marlin/Version.h
172+ sed -i " s/default_envs =.*/default_envs = ${PLATFORMIO_ENV} /" platformio.ini
161173 if ($IS ); then STEMP=; ITEMP=' \/\/' ; else STEMP=' \/\/' ; ITEMP=; fi ;
162174 sed -i " s/.*#define HAS_CGCODE 1/${ITEMP} #define HAS_CGCODE 1/" Marlin/Configuration.h
163175 sed -i " s/.*#define HAS_CUSTOM_COLORS 1/${ITEMP} #define HAS_CUSTOM_COLORS 1/" Marlin/Configuration.h
@@ -177,10 +189,20 @@ case "$JOB_ID" in
177189 if ($T5 ); then THMP=" 5" ; DSMP=" 98" ; elif ($T13 ); then THMP=" 13" ; DSMP=" 424.9" ; else THMP=" 1" ; DSMP=" 98" ; fi ;
178190 sed -i " s/^#define TEMP_SENSOR_0.*/#define TEMP_SENSOR_0 ${THMP} /" Marlin/Configuration.h
179191 sed -i " s/.*#define DEFAULT_AXIS_STEPS_PER_UNIT.*/#define DEFAULT_AXIS_STEPS_PER_UNIT { 80, 80, 400, ${DSMP} }/" Marlin/Configuration.h
180- prepare_output_file
192+ pio run
193+ mkdir temp
194+ mv .pio/build/${PLATFORMIO_ENV} /* .bin temp/build.bin
195+ filename=" ${DTMP} Aquila${AVTMP}${STMP}${TTMP}${MPTMP} _${CONFIG_FOLDER}${EXTMP}${ISTMP}${TPTMP} $( date +" -%m-%d" ) .bin"
196+ echo " filename=$filename " >> " $GITHUB_OUTPUT "
181197 ;;
182198 ' Build BLT EX Files A' )
183- prepare_config_files
199+ > Marlin/Configuration.h
200+ > Marlin/Configuration_adv.h
201+ > Marlin/Version.h
202+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration.h" Marlin/Configuration.h
203+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration_adv.h" Marlin/Configuration_adv.h
204+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Version.h" Marlin/Version.h
205+ sed -i " s/default_envs =.*/default_envs = ${PLATFORMIO_ENV} /" platformio.ini
184206 if ($EX ); then XTEMP=; else XTEMP=' \/\/' ; fi ;
185207 sed -i " s/.*#define PROUI_EX 1/${XTEMP} #define PROUI_EX 1/" Marlin/Configuration.h
186208 if ($IS ); then STEMP=; else STEMP=' \/\/' ; fi ;
@@ -206,10 +228,20 @@ case "$JOB_ID" in
206228 sed -i " s/.*#define BLTOUCH/${MPEMP} #define BLTOUCH/" Marlin/Configuration.h
207229 sed -i " s/.*#define BIQU_MICROPROBE_V2/${MPDEMP} #define BIQU_MICROPROBE_V2/" Marlin/Configuration.h
208230 sed -i " s/.*#define PROBE_ENABLE_DISABLE/${MPDEMP} #define PROBE_ENABLE_DISABLE/" Marlin/Configuration.h
209- prepare_output_file
231+ pio run
232+ mkdir temp
233+ mv .pio/build/${PLATFORMIO_ENV} /* .bin temp/build.bin
234+ filename=" ${DTMP} Aquila${AVTMP}${STMP}${TTMP}${MPTMP} _${CONFIG_FOLDER}${EXTMP}${ISTMP}${TPTMP} $( date +" -%m-%d" ) .bin"
235+ echo " filename=$filename " >> " $GITHUB_OUTPUT "
210236 ;;
211237 ' Build UBL EX SKR Files A' )
212- prepare_config_files
238+ > Marlin/Configuration.h
239+ > Marlin/Configuration_adv.h
240+ > Marlin/Version.h
241+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration.h" Marlin/Configuration.h
242+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration_adv.h" Marlin/Configuration_adv.h
243+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Version.h" Marlin/Version.h
244+ sed -i " s/default_envs =.*/default_envs = ${PLATFORMIO_ENV} /" platformio.ini
213245 if [[ " $AQUILA_VER " != " V3_0" ]]; then
214246 sed -i " s/.*#define HAS_CUSTOM_COLORS 1/\/\/#define HAS_CUSTOM_COLORS 1/" Marlin/Configuration.h
215247 fi ;
@@ -234,10 +266,20 @@ case "$JOB_ID" in
234266 sed -i " s/.*#define BLTOUCH/${MPEMP} #define BLTOUCH/" Marlin/Configuration.h
235267 sed -i " s/.*#define BIQU_MICROPROBE_V2/${MPDEMP} #define BIQU_MICROPROBE_V2/" Marlin/Configuration.h
236268 sed -i " s/.*#define PROBE_ENABLE_DISABLE/${MPDEMP} #define PROBE_ENABLE_DISABLE/" Marlin/Configuration.h
237- prepare_output_file
269+ pio run
270+ mkdir temp
271+ mv .pio/build/${PLATFORMIO_ENV} /* .bin temp/build.bin
272+ filename=" ${DTMP} Aquila${AVTMP}${STMP}${TTMP}${MPTMP} _${CONFIG_FOLDER}${EXTMP}${ISTMP}${TPTMP} $( date +" -%m-%d" ) .bin"
273+ echo " filename=$filename " >> " $GITHUB_OUTPUT "
238274 ;;
239275 ' Build MM EX SKR Files A' )
240- prepare_config_files
276+ > Marlin/Configuration.h
277+ > Marlin/Configuration_adv.h
278+ > Marlin/Version.h
279+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration.h" Marlin/Configuration.h
280+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration_adv.h" Marlin/Configuration_adv.h
281+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Version.h" Marlin/Version.h
282+ sed -i " s/default_envs =.*/default_envs = ${PLATFORMIO_ENV} /" platformio.ini
241283 sed -i " s/.*#define MOTHERBOARD BOARD_.*/#define MOTHERBOARD BOARD_BTT_SKR_MINI_E3_${AQUILA_VER} /" Marlin/Configuration.h
242284 if [ " $AQUILA_VER " = V3_0_1 ]; then
243285 sed -i " s/.*#define CONTROLLER_FAN_PIN.*/#define CONTROLLER_FAN_PIN FAN2_PIN/" Marlin/Configuration_adv.h
@@ -252,18 +294,38 @@ case "$JOB_ID" in
252294 if ($T5 ); then THMP=" 5" ; DSMP=" 98" ; elif ($T13 ); then THMP=" 13" ; DSMP=" 424.9" ; else THMP=" 1" ; DSMP=" 98" ; fi ;
253295 sed -i " s/^#define TEMP_SENSOR_0.*/#define TEMP_SENSOR_0 ${THMP} /" Marlin/Configuration.h
254296 sed -i " s/.*#define DEFAULT_AXIS_STEPS_PER_UNIT.*/#define DEFAULT_AXIS_STEPS_PER_UNIT { 80, 80, 400, ${DSMP} }/" Marlin/Configuration.h
255- prepare_output_file
297+ pio run
298+ mkdir temp
299+ mv .pio/build/${PLATFORMIO_ENV} /* .bin temp/build.bin
300+ filename=" ${DTMP} Aquila${AVTMP}${STMP}${TTMP}${MPTMP} _${CONFIG_FOLDER}${EXTMP}${ISTMP}${TPTMP} $( date +" -%m-%d" ) .bin"
301+ echo " filename=$filename " >> " $GITHUB_OUTPUT "
256302 ;;
257303 ' Build Default Files A4' )
258- prepare_config_files
304+ > Marlin/Configuration.h
305+ > Marlin/Configuration_adv.h
306+ > Marlin/Version.h
307+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration.h" Marlin/Configuration.h
308+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration_adv.h" Marlin/Configuration_adv.h
309+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Version.h" Marlin/Version.h
310+ sed -i " s/default_envs =.*/default_envs = ${PLATFORMIO_ENV} /" platformio.ini
259311 sed -i " s/.*#define MOTHERBOARD BOARD_.*/#define MOTHERBOARD BOARD_${DBORD} /" Marlin/Configuration.h
260312 if ($TJC ); then TJEMP=; REMP=' \/\/' ; else TJEMP=' \/\/' ; REMP=; fi ;
261313 sed -i " s/.*#define TJC_DISPLAY/${TJEMP} #define TJC_DISPLAY/" Marlin/Configuration.h
262314 sed -i " s/.*#define REVERSE_ENCODER_DIRECTION/${REMP} #define REVERSE_ENCODER_DIRECTION/" Marlin/Configuration.h
263- prepare_output_file
315+ pio run
316+ mkdir temp
317+ mv .pio/build/${PLATFORMIO_ENV} /* .bin temp/build.bin
318+ filename=" ${DTMP} Aquila${AVTMP}${STMP}${TTMP}${MPTMP} _${CONFIG_FOLDER}${EXTMP}${ISTMP}${TPTMP} $( date +" -%m-%d" ) .bin"
319+ echo " filename=$filename " >> " $GITHUB_OUTPUT "
264320 ;;
265321 ' Build MM EX Files A4' )
266- prepare_config_files
322+ > Marlin/Configuration.h
323+ > Marlin/Configuration_adv.h
324+ > Marlin/Version.h
325+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration.h" Marlin/Configuration.h
326+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration_adv.h" Marlin/Configuration_adv.h
327+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Version.h" Marlin/Version.h
328+ sed -i " s/default_envs =.*/default_envs = ${PLATFORMIO_ENV} /" platformio.ini
267329 sed -i " s/.*#define MOTHERBOARD BOARD_.*/#define MOTHERBOARD BOARD_${DBORD} /" Marlin/Configuration.h
268330 if ($IS ); then STEMP=; else STEMP=' \/\/' ; fi ;
269331 sed -i " s/.*#define INPUT_SHAPING_X/${STEMP} #define INPUT_SHAPING_X/" Marlin/Configuration_adv.h
@@ -278,10 +340,20 @@ case "$JOB_ID" in
278340 if ($T5 ); then THMP=" 5" ; DSMP=" 98" ; elif ($T13 ); then THMP=" 13" ; DSMP=" 424.9" ; else THMP=" 1" ; DSMP=" 98" ; fi ;
279341 sed -i " s/^#define TEMP_SENSOR_0.*/#define TEMP_SENSOR_0 ${THMP} /" Marlin/Configuration.h
280342 sed -i " s/.*#define DEFAULT_AXIS_STEPS_PER_UNIT.*/#define DEFAULT_AXIS_STEPS_PER_UNIT { 80, 80, 400, ${DSMP} }/" Marlin/Configuration.h
281- prepare_output_file
343+ pio run
344+ mkdir temp
345+ mv .pio/build/${PLATFORMIO_ENV} /* .bin temp/build.bin
346+ filename=" ${DTMP} Aquila${AVTMP}${STMP}${TTMP}${MPTMP} _${CONFIG_FOLDER}${EXTMP}${ISTMP}${TPTMP} $( date +" -%m-%d" ) .bin"
347+ echo " filename=$filename " >> " $GITHUB_OUTPUT "
282348 ;;
283349 ' Build UBL EX Files A4' )
284- prepare_config_files
350+ > Marlin/Configuration.h
351+ > Marlin/Configuration_adv.h
352+ > Marlin/Version.h
353+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration.h" Marlin/Configuration.h
354+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration_adv.h" Marlin/Configuration_adv.h
355+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Version.h" Marlin/Version.h
356+ sed -i " s/default_envs =.*/default_envs = ${PLATFORMIO_ENV} /" platformio.ini
285357 sed -i " s/.*#define MOTHERBOARD BOARD_.*/#define MOTHERBOARD BOARD_${DBORD} /" Marlin/Configuration.h
286358 if ($IS ); then STEMP=; else STEMP=' \/\/' ; fi ;
287359 sed -i " s/.*#define INPUT_SHAPING_X/${STEMP} #define INPUT_SHAPING_X/" Marlin/Configuration_adv.h
@@ -303,10 +375,20 @@ case "$JOB_ID" in
303375 if ($T5 ); then THMP=" 5" ; DSMP=" 98" ; elif ($T13 ); then THMP=" 13" ; DSMP=" 424.9" ; else THMP=" 1" ; DSMP=" 98" ; fi ;
304376 sed -i " s/^#define TEMP_SENSOR_0.*/#define TEMP_SENSOR_0 ${THMP} /" Marlin/Configuration.h
305377 sed -i " s/.*#define DEFAULT_AXIS_STEPS_PER_UNIT.*/#define DEFAULT_AXIS_STEPS_PER_UNIT { 80, 80, 400, ${DSMP} }/" Marlin/Configuration.h
306- prepare_output_file
378+ pio run
379+ mkdir temp
380+ mv .pio/build/${PLATFORMIO_ENV} /* .bin temp/build.bin
381+ filename=" ${DTMP} Aquila${AVTMP}${STMP}${TTMP}${MPTMP} _${CONFIG_FOLDER}${EXTMP}${ISTMP}${TPTMP} $( date +" -%m-%d" ) .bin"
382+ echo " filename=$filename " >> " $GITHUB_OUTPUT "
307383 ;;
308384 ' Build BLT EX Files A4' )
309- prepare_config_files
385+ > Marlin/Configuration.h
386+ > Marlin/Configuration_adv.h
387+ > Marlin/Version.h
388+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration.h" Marlin/Configuration.h
389+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration_adv.h" Marlin/Configuration_adv.h
390+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Version.h" Marlin/Version.h
391+ sed -i " s/default_envs =.*/default_envs = ${PLATFORMIO_ENV} /" platformio.ini
310392 sed -i " s/.*#define MOTHERBOARD BOARD_.*/#define MOTHERBOARD BOARD_${DBORD} /" Marlin/Configuration.h
311393 if ($IS ); then STEMP=; else STEMP=' \/\/' ; fi ;
312394 sed -i " s/.*#define INPUT_SHAPING_X/${STEMP} #define INPUT_SHAPING_X/" Marlin/Configuration_adv.h
@@ -328,10 +410,20 @@ case "$JOB_ID" in
328410 sed -i " s/.*#define BLTOUCH/${MPEMP} #define BLTOUCH/" Marlin/Configuration.h
329411 sed -i " s/.*#define BIQU_MICROPROBE_V2/${MPDEMP} #define BIQU_MICROPROBE_V2/" Marlin/Configuration.h
330412 sed -i " s/.*#define PROBE_ENABLE_DISABLE/${MPDEMP} #define PROBE_ENABLE_DISABLE/" Marlin/Configuration.h
331- prepare_output_file
413+ pio run
414+ mkdir temp
415+ mv .pio/build/${PLATFORMIO_ENV} /* .bin temp/build.bin
416+ filename=" ${DTMP} Aquila${AVTMP}${STMP}${TTMP}${MPTMP} _${CONFIG_FOLDER}${EXTMP}${ISTMP}${TPTMP} $( date +" -%m-%d" ) .bin"
417+ echo " filename=$filename " >> " $GITHUB_OUTPUT "
332418 ;;
333419 ' Build UBL EX IND Files A4' )
334- prepare_config_files
420+ > Marlin/Configuration.h
421+ > Marlin/Configuration_adv.h
422+ > Marlin/Version.h
423+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration.h" Marlin/Configuration.h
424+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Configuration_adv.h" Marlin/Configuration_adv.h
425+ cp " configurations/$PRINTER_MODEL /$CONFIG_FOLDER /Version.h" Marlin/Version.h
426+ sed -i " s/default_envs =.*/default_envs = ${PLATFORMIO_ENV} /" platformio.ini
335427 sed -i " s/.*#define MOTHERBOARD BOARD_.*/#define MOTHERBOARD BOARD_${DBORD} /" Marlin/Configuration.h
336428 sed -i " s/.*#define Z_MIN_PROBE_PIN.*/#define Z_MIN_PROBE_PIN PB0/" Marlin/Configuration.h
337429 sed -i " /.*#define Z_MIN_PROBE_PIN.*/a\#define SERVO0_PIN PB1" Marlin/Configuration.h
@@ -351,6 +443,10 @@ case "$JOB_ID" in
351443 if ($T5 ); then THMP=" 5" ; DSMP=" 98" ; elif ($T13 ); then THMP=" 13" ; DSMP=" 424.9" ; else THMP=" 1" ; DSMP=" 98" ; fi ;
352444 sed -i " s/^#define TEMP_SENSOR_0.*/#define TEMP_SENSOR_0 ${THMP} /" Marlin/Configuration.h
353445 sed -i " s/.*#define DEFAULT_AXIS_STEPS_PER_UNIT.*/#define DEFAULT_AXIS_STEPS_PER_UNIT { 80, 80, 400, ${DSMP} }/" Marlin/Configuration.h
354- prepare_output_file
446+ pio run
447+ mkdir temp
448+ mv .pio/build/${PLATFORMIO_ENV} /* .bin temp/build.bin
449+ filename=" ${DTMP} Aquila${AVTMP}${STMP}${TTMP}${MPTMP} _${CONFIG_FOLDER}${EXTMP}${ISTMP}${TPTMP} $( date +" -%m-%d" ) .bin"
450+ echo " filename=$filename " >> " $GITHUB_OUTPUT "
355451 ;;
356452esac
0 commit comments