forked from mriscoc/Ender3V2S1
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update - compile-configs-HC32, C2 configs
- Loading branch information
1 parent
a8c24a2
commit 7b28557
Showing
5 changed files
with
110 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,9 +55,9 @@ jobs: | |
cp configurations/Voxelab\ Aquila\ HC32/Configuration_advDNP.h Marlin/Configuration_adv.h | ||
cp configurations/Voxelab\ Aquila\ HC32/Version.h Marlin/Version.h | ||
sed -i "s/default_envs =.*/default_envs = HC32F460C_aquila_101/" platformio.ini | ||
if ($IS); then TEMP=; else TEMP='\/\/'; fi; | ||
sed -i "s/.*#define INPUT_SHAPING_X/${TEMP}#define INPUT_SHAPING_X/" Marlin/Configuration_adv.h | ||
sed -i "s/.*#define INPUT_SHAPING_Y/${TEMP}#define INPUT_SHAPING_Y/" Marlin/Configuration_adv.h | ||
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 | ||
sed -i "s/.*#define INPUT_SHAPING_Z/${STEMP}#define INPUT_SHAPING_Z/" Marlin/Configuration_adv.h | ||
if ($TP); then PTEMP='\/\/'; MTEMP=; else PTEMP=; MTEMP='\/\/'; fi; | ||
sed -i "0,/^#define PIDTEMP/ s/.*#define PIDTEMP/${PTEMP}#define PIDTEMP/" Marlin/Configuration.h | ||
|
@@ -287,9 +287,9 @@ jobs: | |
cp configurations/Voxelab\ Aquila\ HC32/Configuration_advUBL.h Marlin/Configuration_adv.h | ||
cp configurations/Voxelab\ Aquila\ HC32/Version.h Marlin/Version.h | ||
sed -i "s/default_envs =.*/default_envs = HC32F460C_aquila_101/" platformio.ini | ||
if ($IS); then TEMP=; fi; | ||
sed -i "s/.*#define INPUT_SHAPING_X/${TEMP}#define INPUT_SHAPING_X/" Marlin/Configuration_adv.h | ||
sed -i "s/.*#define INPUT_SHAPING_Y/${TEMP}#define INPUT_SHAPING_Y/" Marlin/Configuration_adv.h | ||
if ($IS); then 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 | ||
sed -i "s/.*#define INPUT_SHAPING_Z/${STEMP}#define INPUT_SHAPING_Z/" Marlin/Configuration_adv.h | ||
pio run | ||
mkdir temp | ||
|
@@ -355,9 +355,9 @@ jobs: | |
cp configurations/Voxelab\ Aquila\ HC32/Configuration_advBLT.h Marlin/Configuration_adv.h | ||
cp configurations/Voxelab\ Aquila\ HC32/Version.h Marlin/Version.h | ||
sed -i "s/default_envs =.*/default_envs = HC32F460C_aquila_101/" platformio.ini | ||
if ($IS); then TEMP=; else TEMP='\/\/'; fi; | ||
sed -i "s/.*#define INPUT_SHAPING_X/${TEMP}#define INPUT_SHAPING_X/" Marlin/Configuration_adv.h | ||
sed -i "s/.*#define INPUT_SHAPING_Y/${TEMP}#define INPUT_SHAPING_Y/" Marlin/Configuration_adv.h | ||
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 | ||
sed -i "s/.*#define INPUT_SHAPING_Z/${STEMP}#define INPUT_SHAPING_Z/" Marlin/Configuration_adv.h | ||
pio run | ||
mkdir temp | ||
|
@@ -378,3 +378,89 @@ jobs: | |
asset_path: temp/build.bin | ||
asset_name: ${{ steps.build_configs.outputs.filename }} | ||
asset_content_type: application/x-binary | ||
Build-C2-NoProbe: # CR10 LCD C2 MM/Default | ||
name: Build C2 NoProbe Files | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
chip: [GD32,N32] | ||
abl: [MM,Default] | ||
temp: [true,false] | ||
inshape: [true,false] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Cache pip | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Cache PlatformIO | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.platformio | ||
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Install PlatformIO | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
pip install --upgrade pip | ||
pip install --upgrade wheel | ||
pip install --upgrade platformio | ||
- 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 | ||
> Marlin/Configuration_adv.h | ||
> Marlin/Version.h | ||
if [ "$ABL" = Default ]; then | ||
cp configurations/Voxelab\ Aquila\ HC32/C2/Default-NP/Configuration.h Marlin/Configuration.h | ||
cp configurations/Voxelab\ Aquila\ HC32/C2/Default-NP/Configuration_adv.h Marlin/Configuration_adv.h | ||
cp configurations/Voxelab\ Aquila\ HC32/C2/Default-NP/Version.h Marlin/Version.h | ||
elif [ "$ABL" = MM ]; then | ||
cp configurations/Voxelab\ Aquila\ HC32/C2/MM/Configuration.h Marlin/Configuration.h | ||
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 | ||
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 | ||
sed -i "s/.*#define INPUT_SHAPING_Z/${STEMP}#define INPUT_SHAPING_Z/" Marlin/Configuration_adv.h | ||
if ($TP); then PTEMP='\/\/'; MTEMP=; else PTEMP=; MTEMP='\/\/'; fi; | ||
sed -i "0,/^#define PIDTEMP/ s/.*#define PIDTEMP/${PTEMP}#define PIDTEMP/" Marlin/Configuration.h | ||
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 | ||
env: | ||
AQUILA_VER: ${{ matrix.chip }} | ||
ABL: ${{ matrix.abl }} | ||
TP: ${{ matrix.temp }} | ||
IS: ${{ matrix.inshape }} | ||
- name: Get release | ||
id: get_release | ||
uses: bruceadams/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
- name: Upload Release Asset | ||
uses: tanyagray/action-upload-release-asset@main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
asset_path: temp/build.bin | ||
asset_name: ${{ steps.build_configs.outputs.filename }} | ||
asset_content_type: application/x-binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters