Skip to content

Commit

Permalink
Update - compile-configs-HC32
Browse files Browse the repository at this point in the history
  • Loading branch information
classicrocker883 committed May 23, 2024
1 parent 7b28557 commit 65b5ec9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/compile-configs-HC32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
chip: [GD32,N32]
abl: [MM,Default]
temp: [true,false]
inshape: [true,false]
Expand Down Expand Up @@ -418,7 +417,6 @@ jobs:
- name: Run PlatformIO
id: build_configs
run: |
if [ "$AQUILA_VER" = GD32 ]; then AVTMP="GD32"; else AVTMP="N32"; fi;
if ($TP); then TPTMP=-MPC; else TPTMP=; fi;
if ($IS); then ISTMP=-IS; else ISTMP=; fi;
> Marlin/Configuration.h
Expand All @@ -433,8 +431,8 @@ jobs:
cp configurations/Voxelab\ Aquila\ HC32/C2/MM/Configuration_adv.h Marlin/Configuration_adv.h
cp configurations/Voxelab\ Aquila\ HC32/C2/MM/Version.h Marlin/Version.h
fi;
echo "filename=C2-Aquila_${AVTMP}_${ABL}${ISTMP}${TPTMP}$(date +"-%m-%d").bin" >> $GITHUB_OUTPUT
sed -i "s/default_envs =.*/default_envs = ${AQUILA_VER}F103RC_voxelab_maple/" platformio.ini
echo "filename=C2-HC32_${ABL}${ISTMP}${TPTMP}$(date +"-%m-%d").bin" >> $GITHUB_OUTPUT
sed -i "s/default_envs =.*/default_envs = HC32F460C_aquila_101/" platformio.ini
if ($IS); then STEMP=; else STEMP='\/\/'; fi;
sed -i "s/.*#define INPUT_SHAPING_X/${STEMP}#define INPUT_SHAPING_X/" Marlin/Configuration_adv.h
sed -i "s/.*#define INPUT_SHAPING_Y/${STEMP}#define INPUT_SHAPING_Y/" Marlin/Configuration_adv.h
Expand All @@ -444,9 +442,8 @@ jobs:
sed -i "s/.*#define MPCTEMP/${MTEMP}#define MPCTEMP/" Marlin/Configuration.h
pio run
mkdir temp
mv .pio/build/${AQUILA_VER}F103RC_voxelab_maple/*.bin temp/build.bin
mv .pio/build/HC32F460C_aquila_101/*.bin temp/build.bin
env:
AQUILA_VER: ${{ matrix.chip }}
ABL: ${{ matrix.abl }}
TP: ${{ matrix.temp }}
IS: ${{ matrix.inshape }}
Expand Down

0 comments on commit 65b5ec9

Please sign in to comment.