Skip to content

Commit

Permalink
Workflow Filename Clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
Jyers committed Mar 8, 2021
1 parent 50c8e81 commit 991e7ce
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/compile-configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ jobs:
- name: Run PlatformIO BL-Touch
id: build_configs
run: |
echo "::set-output name=filename::E3V2-Default-${BOARD}.bin"
if [ "$BOARD" = V4 ]; then BOARDTMP=v4.2.2; else BOARDTMP=v4.2.7; fi;
echo "::set-output name=filename::E3V2-Default-${BOARDTMP}.bin"
cp Configuration\ Files/E3V2\ Templates/Default-NoProbe/Configuration.h Marlin/Configuration.h
cp Configuration\ Files/E3V2\ Templates/Default-NoProbe/Configuration_adv.h Marlin/Configuration_adv.h
sed -i "s/#define MOTHERBOARD.*/#define MOTHERBOARD BOARD_CREALITY_$BOARD/g" Marlin/Configuration.h
Expand Down Expand Up @@ -90,8 +91,9 @@ jobs:
- name: Run PlatformIO BL-Touch
id: build_configs
run: |
if ($HS); then TMP=-HS; else TMP=; fi;
echo "::set-output name=filename::E3V2-BLTouch-${GRID}x${GRID}${TMP}-${BOARD}.bin"
if ($HS); then HSTMP=-HS; else HSTMP=; fi;
if [ "$BOARD" = V4 ]; then BOARDTMP=v4.2.2; else BOARDTMP=v4.2.7; fi;
echo "::set-output name=filename::E3V2-BLTouch-${GRID}x${GRID}${HSTMP}-${BOARDTMP}.bin"
cp Configuration\ Files/E3V2\ Templates/BLTouch-3x3/Configuration.h Marlin/Configuration.h
cp Configuration\ Files/E3V2\ Templates/BLTouch-3x3/Configuration_adv.h Marlin/Configuration_adv.h
sed -i "s/#define MOTHERBOARD.*/#define MOTHERBOARD BOARD_CREALITY_$BOARD/g" Marlin/Configuration.h
Expand Down Expand Up @@ -149,7 +151,8 @@ jobs:
- name: Run PlatformIO BL-Touch
id: build_configs
run: |
echo "::set-output name=filename::E3V2-ManualMesh-${GRID}x${GRID}-${BOARD}.bin"
if [ "$BOARD" = V4 ]; then BOARDTMP=v4.2.2; else BOARDTMP=v4.2.7; fi;
echo "::set-output name=filename::E3V2-ManualMesh-${GRID}x${GRID}-${BOARDTMP}.bin"
cp Configuration\ Files/E3V2\ Templates/ManualMesh-3x3/Configuration.h Marlin/Configuration.h
cp Configuration\ Files/E3V2\ Templates/ManualMesh-3x3/Configuration_adv.h Marlin/Configuration_adv.h
sed -i "s/#define MOTHERBOARD.*/#define MOTHERBOARD BOARD_CREALITY_$BOARD/g" Marlin/Configuration.h
Expand Down Expand Up @@ -205,8 +208,9 @@ jobs:
- name: Run PlatformIO BL-Touch
id: build_configs
run: |
if ($HS); then TMP=-HS; else TMP=; fi;
echo "::set-output name=filename::E3V2-UBL-BLTouch-${GRID}x${GRID}${TMP}-${BOARD}.bin"
if ($HS); then HSTMP=-HS; else HSTMP=; fi;
if [ "$BOARD" = V4 ]; then BOARDTMP=v4.2.2; else BOARDTMP=v4.2.7; fi;
echo "::set-output name=filename::E3V2-UBL-BLTouch-${GRID}x${GRID}${HSTMP}-${BOARDTMP}.bin"
cp Configuration\ Files/E3V2\ Templates/UBL-BLTouch-10x10/Configuration.h Marlin/Configuration.h
cp Configuration\ Files/E3V2\ Templates/UBL-BLTouch-10x10/Configuration_adv.h Marlin/Configuration_adv.h
sed -i "s/#define MOTHERBOARD.*/#define MOTHERBOARD BOARD_CREALITY_$BOARD/g" Marlin/Configuration.h
Expand Down Expand Up @@ -264,7 +268,8 @@ jobs:
- name: Run PlatformIO BL-Touch
id: build_configs
run: |
echo "::set-output name=filename::E3V2-UBL-NoProbe-${GRID}x${GRID}-${BOARD}.bin"
if [ "$BOARD" = V4 ]; then BOARDTMP=v4.2.2; else BOARDTMP=v4.2.7; fi;
echo "::set-output name=filename::E3V2-UBL-NoProbe-${GRID}x${GRID}-${BOARDTMP}.bin"
cp Configuration\ Files/E3V2\ Templates/UBL-NoProbe-3x3/Configuration.h Marlin/Configuration.h
cp Configuration\ Files/E3V2\ Templates/UBL-NoProbe-3x3/Configuration_adv.h Marlin/Configuration_adv.h
sed -i "s/#define MOTHERBOARD.*/#define MOTHERBOARD BOARD_CREALITY_$BOARD/g" Marlin/Configuration.h
Expand Down

0 comments on commit 991e7ce

Please sign in to comment.