HC32 Build for October (ProUI) #36
Workflow file for this run
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
name: HC32 Build Configs | |
######################### Aquila HC32 ######################### | |
on: | |
workflow_dispatch: | |
release: | |
types: [created] | |
jobs: | |
Build-Default: | |
name: Build Default Files | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [HC32] | |
temp: [true,false] | |
inshape: [true,false] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Cache pip | |
uses: actions/[email protected] | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Cache PlatformIO | |
uses: actions/[email protected] | |
with: | |
path: ~/.platformio | |
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install PlatformIO | |
run: | | |
python3 -m pip install --upgrade pip | |
pip install --upgrade wheel | |
pip install --upgrade platformio | |
- name: Run PlatformIO | |
id: build_configs | |
run: | | |
if ($TP); then TPTMP=-MPC; else TPTMP=; fi; | |
if ($IS); then ISTMP=-IS; else ISTMP=; fi; | |
if [ "$AQUILA_VER" = HC32 ]; then AVTMP="HC32"; fi; | |
echo "filename=${AVTMP}_Default-NP-ProUI${ISTMP}${TPTMP}.bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
cp configurations/Voxelab\ Aquila/HC32/ConfigurationDNP.h Marlin/Configuration.h | |
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 = HC32F460xCxx_AQUILA_V101/g" platformio.ini | |
if ($IS); then TEMP=; else TEMP='\/\/'; fi; | |
sed -i "s/[^ ]*#define INPUT_SHAPING_X/$TEMP#define INPUT_SHAPING_X/g" Marlin/Configuration_adv.h | |
sed -i "s/[^ ]*#define INPUT_SHAPING_Y/$TEMP#define INPUT_SHAPING_Y/g" Marlin/Configuration_adv.h | |
if ($TP); then PTEMP='\/\/'; else PTEMP=; fi; | |
sed -i "s/[^ ]*#define PIDTEMP/$PTEMP#define PIDTEMP/g" Marlin/Configuration.h | |
if ($TP); then MTEMP=; else MTEMP='\/\/'; fi; | |
sed -i "s/[^ ]*#define MPCTEMP/$MTEMP#define MPCTEMP/g" Marlin/Configuration.h | |
pio run | |
mkdir temp | |
mv .pio/build/HC32F460xCxx_AQUILA_V101/*.bin temp/build.bin | |
env: | |
AQUILA_VER: ${{ matrix.chip }} | |
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/[email protected] | |
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 | |
Build-Manual-Mesh: | |
name: Build Manual-Mesh Files | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [HC32] | |
temp: [true,false] | |
inshape: [true,false] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Cache pip | |
uses: actions/[email protected] | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Cache PlatformIO | |
uses: actions/[email protected] | |
with: | |
path: ~/.platformio | |
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install PlatformIO | |
run: | | |
python3 -m pip install --upgrade pip | |
pip install --upgrade wheel | |
pip install --upgrade platformio | |
- name: Run PlatformIO | |
id: build_configs | |
run: | | |
if ($TP); then TPTMP=-MPC; else TPTMP=; fi; | |
if ($IS); then ISTMP=-IS; else ISTMP=; fi; | |
if [ "$AQUILA_VER" = HC32 ]; then AVTMP="HC32"; fi; | |
echo "filename=${AVTMP}-MM-ProUI${ISTMP}${TPTMP}.bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
cp configurations/Voxelab\ Aquila/HC32/ConfigurationMM.h Marlin/Configuration.h | |
cp configurations/Voxelab\ Aquila/HC32/Configuration_advMM.h Marlin/Configuration_adv.h | |
cp configurations/Voxelab\ Aquila/HC32/Version.h Marlin/Version.h | |
sed -i "s/default_envs =.*/default_envs = HC32F460xCxx_AQUILA_V101/g" platformio.ini | |
if ($IS); then STEMP=; else STEMP='\/\/'; fi; | |
sed -i "s/[^ ]*#define INPUT_SHAPING_X/$STEMP#define INPUT_SHAPING_X/g" Marlin/Configuration_adv.h | |
sed -i "s/[^ ]*#define INPUT_SHAPING_Y/$STEMP#define INPUT_SHAPING_Y/g" Marlin/Configuration_adv.h | |
if ($TP); then PTEMP='\/\/'; else PTEMP=; fi; | |
sed -i "s/[^ ]*#define PIDTEMP/$PTEMP#define PIDTEMP/g" Marlin/Configuration.h | |
sed -i "s/[^ ]*#define USE_GRID_MESHVIEWER/$PTEMP#define USE_GRID_MESHVIEWER/g" Marlin/Configuration.h | |
sed -i "s/[^ ]*#define HAS_CUSTOM_COLORS/$PTEMP#define HAS_CUSTOM_COLORS/g" Marlin/Configuration.h | |
sed -i "s/[^ ]*#define HAS_LOCKSCREEN/$PTEMP#define HAS_LOCKSCREEN/g" Marlin/Configuration.h | |
if ($TP); then MTEMP=; else MTEMP='\/\/'; fi; | |
sed -i "s/[^ ]*#define MPCTEMP/$MTEMP#define MPCTEMP/g" Marlin/Configuration.h | |
if ($IS); then ITEMP='\/\/'; else ITEMP=; fi; | |
sed -i "s/[^ ]*#define EXTENDED_CAPABILITIES_REPORT/$ITEMP#define EXTENDED_CAPABILITIES_REPORT/g" Marlin/Configuration_adv.h | |
sed -i "s/[^ ]*#define HAS_LOCKSCREEN/$ITEMP#define HAS_LOCKSCREEN/g" Marlin/Configuration.h | |
sed -i "s/[^ ]*#define AUTO_REPORT_POSITION/$ITEMP#define AUTO_REPORT_POSITION/g" Marlin/Configuration_adv.h | |
if [[ ($IS) && ($TP) ]]; then ETEMP='\/\/'; else ETEMP=; fi; | |
sed -i "s/[^ ]*#define FILAMENT_RUNOUT_SENSOR/$ETEMP#define FILAMENT_RUNOUT_SENSOR/g" Marlin/Configuration.h | |
pio run | |
mkdir temp | |
mv .pio/build/HC32F460xCxx_AQUILA_V101/*.bin temp/build.bin | |
env: | |
AQUILA_VER: ${{ matrix.chip }} | |
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/[email protected] | |
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 | |
Build-UBL-NP: | |
name: Build UBL NoPro Files | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [HC32] | |
temp: [true,false] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Cache pip | |
uses: actions/[email protected] | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Cache PlatformIO | |
uses: actions/[email protected] | |
with: | |
path: ~/.platformio | |
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install PlatformIO | |
run: | | |
python3 -m pip install --upgrade pip | |
pip install --upgrade wheel | |
pip install --upgrade platformio | |
- name: Run PlatformIO | |
id: build_configs | |
run: | | |
if ($TP); then TPTMP=-MPC; else TPTMP=; fi; | |
if [ "$AQUILA_VER" = HC32 ]; then AVTMP="HC32"; fi; | |
echo "filename=${AVTMP}_UBL-ProUI${TPTMP}.bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
cp configurations/Voxelab\ Aquila/HC32/ConfigurationUBL.h Marlin/Configuration.h | |
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 = HC32F460xCxx_AQUILA_V101/g" platformio.ini | |
if ($TP); then PTEMP='\/\/'; else PTEMP=; fi; | |
sed -i "s/[^ ]*#define PIDTEMP/$PTEMP#define PIDTEMP/g" Marlin/Configuration.h | |
if ($TP); then MTEMP=; else MTEMP='\/\/'; fi; | |
sed -i "s/[^ ]*#define MPCTEMP/$MTEMP#define MPCTEMP/g" Marlin/Configuration.h | |
pio run | |
mkdir temp | |
mv .pio/build/HC32F460xCxx_AQUILA_V101/*.bin temp/build.bin | |
env: | |
AQUILA_VER: ${{ matrix.chip }} | |
TP: ${{ matrix.temp }} | |
- name: Get release | |
id: get_release | |
uses: bruceadams/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Upload Release Asset | |
uses: tanyagray/[email protected] | |
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 | |
# Build-UBL-BLTouch-A-NP: | |
# name: Build UBL NoPro Files | |
# runs-on: ubuntu-latest | |
# strategy: | |
# matrix: | |
# chip: [HC32] | |
# grid: [3,4,5,7] | |
# inshape: [true,false] | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - name: Setup node | |
# uses: actions/setup-node@v3 | |
# with: | |
# node-version: 16 | |
# - name: Cache pip | |
# uses: actions/[email protected] | |
# with: | |
# path: ~/.cache/pip | |
# key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
# restore-keys: | | |
# ${{ runner.os }}-pip- | |
# - name: Cache PlatformIO | |
# uses: actions/[email protected] | |
# with: | |
# path: ~/.platformio | |
# key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | |
# - name: Set up Python | |
# uses: actions/setup-python@v4 | |
# with: | |
# python-version: '3.10' | |
# - name: Install PlatformIO | |
# run: | | |
# python3 -m pip install --upgrade pip | |
# pip install --upgrade wheel | |
# pip install --upgrade platformio | |
# - name: Run PlatformIO | |
# id: build_configs | |
# run: | | |
# if ($IS); then ISTMP=-IS; else ISTMP=; fi; | |
# if [ "$AQUILA_VER" = HC32 ]; then AVTMP="HC32"; fi; | |
# echo "filename=${AVTMP}_UBL-${GRID}x${GRID}-NoPro${ISTMP}.bin" >> $GITHUB_OUTPUT | |
# > Marlin/Configuration.h | |
# > Marlin/Configuration_adv.h | |
# > Marlin/Version.h | |
# cp configurations/Voxelab\ Aquila/HC32/ConfigurationUBL.h Marlin/Configuration.h | |
# 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 = HC32F460xCxx_AQUILA_V101/g" platformio.ini | |
# sed -i "s/#define GRID_MAX_POINTS_X.*/#define GRID_MAX_POINTS_X $GRID/g" Marlin/Configuration.h | |
# if ($IS); then TEMP=; else TEMP='\/\/'; fi; | |
# sed -i "s/[^ ]*#define INPUT_SHAPING_X/$TEMP#define INPUT_SHAPING_X/g" Marlin/Configuration_adv.h | |
# sed -i "s/[^ ]*#define INPUT_SHAPING_Y/$TEMP#define INPUT_SHAPING_Y/g" Marlin/Configuration_adv.h | |
# pio run | |
# mkdir temp | |
# mv .pio/build/HC32F460xCxx_AQUILA_V101/*.bin temp/build.bin | |
# env: | |
# AQUILA_VER: ${{ matrix.chip }} | |
# GRID: ${{ matrix.grid }} | |
# IS: ${{ matrix.inshape }} | |
# - name: Get release | |
# id: get_release | |
# uses: bruceadams/[email protected] | |
# env: | |
# GITHUB_TOKEN: ${{ github.token }} | |
# - name: Upload Release Asset | |
# uses: tanyagray/[email protected] | |
# 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 | |
Build-BLTouch-ProUI: | |
name: Build BL-Touch ProUI Files | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [HC32] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Cache pip | |
uses: actions/[email protected] | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Cache PlatformIO | |
uses: actions/[email protected] | |
with: | |
path: ~/.platformio | |
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install PlatformIO | |
run: | | |
python3 -m pip install --upgrade pip | |
pip install --upgrade wheel | |
pip install --upgrade platformio | |
- name: Run PlatformIO | |
id: build_configs | |
run: | | |
if [ "$AQUILA_VER" = HC32 ]; then AVTMP="HC32"; fi; | |
echo "filename=${AVTMP}_BLT-ProUI.bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
cp configurations/Voxelab\ Aquila/HC32/ConfigurationBLT.h Marlin/Configuration.h | |
cp configurations/Voxelab\ Aquila/HC32/Configuration_advBLT.h Marlin/Configuration_adv.h | |
cp configurations/Voxelab\ Aquila/HC32/Version.h Marlin/Version.h | |
pio run | |
mkdir temp | |
mv .pio/build/HC32F460xCxx_AQUILA_V101/*.bin temp/build.bin | |
env: | |
AQUILA_VER: ${{ matrix.chip }} | |
- name: Get release | |
id: get_release | |
uses: bruceadams/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Upload Release Asset | |
uses: tanyagray/[email protected] | |
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 |