HC32 Build for September (JyersUI) #32
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 JyersUI | |
######################### Aquila HC32 ######################### | |
on: | |
workflow_dispatch: | |
release: | |
types: [created] | |
jobs: | |
Build-Default-JyersUI: | |
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/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Cache PlatformIO | |
uses: actions/cache@v3 | |
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}_Default-NP-JyersUI.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 | |
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-JyersUI: | |
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/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Cache PlatformIO | |
uses: actions/cache@v3 | |
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 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}-MM-JyersUI.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 | |
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-JyersUI: | |
name: Build UBL 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/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Cache PlatformIO | |
uses: actions/cache@v3 | |
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 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}_UBL-JyersUI.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 | |
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/cache@v3 | |
# with: | |
# path: ~/.cache/pip | |
# key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
# restore-keys: | | |
# ${{ runner.os }}-pip- | |
# - name: Cache PlatformIO | |
# uses: actions/cache@v3 | |
# 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-JyersUI: | |
name: Build BL-Touch 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/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Cache PlatformIO | |
uses: actions/cache@v3 | |
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 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-JyersUI.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 |