Aquila Build for April #292
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: Aquila Build Configs | |
######################### Aquila ######################### | |
on: | |
workflow_dispatch: | |
release: | |
types: [released] | |
jobs: | |
Build-Default-A: # Default NoPro for Aquila | |
name: Build Default Files A | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [GD32,N32] | |
temp: [true,false] | |
inshape: [true,false] | |
tjc: [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; | |
if ($TJC); then DTMP=TJC-; else DTMP=; fi; | |
echo "filename=${DTMP}Aquila_${AVTMP}_Default-NoPro${ISTMP}${TPTMP}$(date +"-%m-%d").bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
cp configurations/Voxelab\ Aquila/Default-NP/Configuration.h Marlin/Configuration.h | |
cp configurations/Voxelab\ Aquila/Default-NP/Configuration_adv.h Marlin/Configuration_adv.h | |
cp configurations/Voxelab\ Aquila/Default-NP/Version.h Marlin/Version.h | |
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 | |
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 | |
if ($TJC); then TJEMP=; REMP='\/\/'; else TJEMP='\/\/'; REMP=; fi; | |
sed -i "s/.*#define TJC_DISPLAY/${TJEMP}#define TJC_DISPLAY/" Marlin/Configuration.h | |
sed -i "s/.*#define REVERSE_ENCODER_DIRECTION/${REMP}#define REVERSE_ENCODER_DIRECTION/" Marlin/Configuration.h | |
pio run | |
mkdir temp | |
mv .pio/build/${AQUILA_VER}F103RC_voxelab_maple/*.bin temp/build.bin | |
env: | |
AQUILA_VER: ${{ matrix.chip }} | |
TP: ${{ matrix.temp }} | |
IS: ${{ matrix.inshape }} | |
TJC: ${{ matrix.tjc }} | |
- 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 | |
Build-Manual-Mesh-A: # MM Pro for Aquila | |
name: Build Manual-Mesh Files A | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [GD32,N32] | |
temp: [true,false] | |
inshape: [true,false] | |
tjc: [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; | |
if ($TJC); then DTMP=TJC-; else DTMP=; fi; | |
echo "filename=${DTMP}Aquila_${AVTMP}_MM-ProUI${ISTMP}${TPTMP}$(date +"-%m-%d").bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
cp configurations/Voxelab\ Aquila/MM/Configuration.h Marlin/Configuration.h | |
cp configurations/Voxelab\ Aquila/MM/Configuration_adv.h Marlin/Configuration_adv.h | |
cp configurations/Voxelab\ Aquila/MM/Version.h Marlin/Version.h | |
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 | |
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 | |
if ($TJC); then TJEMP=; REMP='\/\/'; else TJEMP='\/\/'; REMP=; fi; | |
sed -i "s/.*#define TJC_DISPLAY/${TJEMP}#define TJC_DISPLAY/" Marlin/Configuration.h | |
sed -i "s/.*#define REVERSE_ENCODER_DIRECTION/${REMP}#define REVERSE_ENCODER_DIRECTION/" Marlin/Configuration.h | |
pio run | |
mkdir temp | |
mv .pio/build/${AQUILA_VER}F103RC_voxelab_maple/*.bin temp/build.bin | |
env: | |
AQUILA_VER: ${{ matrix.chip }} | |
TP: ${{ matrix.temp }} | |
IS: ${{ matrix.inshape }} | |
TJC: ${{ matrix.tjc }} | |
- 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 | |
Build-UBL-ProUI-A: # UBL Pro PID_MPC for Aquila | |
name: Build UBL Pro Files A | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [GD32,N32] | |
temp: [true,false] | |
tjc: [true,false] | |
t13: [true,false] | |
mp: [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 ($TJC); then DTMP=TJC-; else DTMP=; fi; | |
if ($T13); then TTMP=_SPRT13; else TTMP=; fi; | |
if ($MP); then MPTMP=_MP; else MPTMP=; fi; | |
echo "filename=${DTMP}Aquila${TTMP}${MPTMP}_${AVTMP}_UBL-ProUI${TPTMP}$(date +"-%m-%d").bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
cp configurations/Voxelab\ Aquila/UBL/ConfigurationPro.h Marlin/Configuration.h | |
cp configurations/Voxelab\ Aquila/UBL/Configuration_adv.h Marlin/Configuration_adv.h | |
cp configurations/Voxelab\ Aquila/UBL/Version.h Marlin/Version.h | |
sed -i "s/default_envs =.*/default_envs = ${AQUILA_VER}F103RC_voxelab_maple/" platformio.ini | |
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 | |
sed -i "s/.*#define PREHEAT_2_LABEL/${PTEMP}#define PREHEAT_2_LABEL/" Marlin/Configuration.h | |
sed -i "s/.*#define USE_GRID_MESHVIEWER 1/${PTEMP}#define USE_GRID_MESHVIEWER 1/" Marlin/Configuration.h | |
sed -i "s/.*#define HAS_CUSTOM_COLORS 1/${PTEMP}#define HAS_CUSTOM_COLORS 1/" Marlin/Configuration.h | |
sed -i "s/.*#define CAPABILITIES_REPORT/${PTEMP}#define CAPABILITIES_REPORT/" Marlin/Configuration_adv.h | |
if ($TJC); then TJEMP=; REMP='\/\/'; else TJEMP='\/\/'; REMP=; fi; | |
sed -i "s/.*#define TJC_DISPLAY/${TJEMP}#define TJC_DISPLAY/" Marlin/Configuration.h | |
sed -i "s/.*#define REVERSE_ENCODER_DIRECTION/${REMP}#define REVERSE_ENCODER_DIRECTION/" Marlin/Configuration.h | |
if ($T13); then THMP="13"; TMMP='\/\/'; else THMP="1"; TMMP=; fi; | |
sed -i "s/.*#define TEMP_SENSOR_0 1/#define TEMP_SENSOR_0 ${THMP}/" Marlin/Configuration.h | |
if ($MP); then MPDEMP=; MPEMP='\/\/'; MPHS="LOW"; else MPDEMP='\/\/'; MPEMP=; MPHS="HIGH"; fi; | |
sed -i "s/.*#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN/${MPDEMP}#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN/" Marlin/Configuration.h | |
sed -i "s/.*#define Z_MIN_ENDSTOP_HIT_STATE.*/#define Z_MIN_ENDSTOP_HIT_STATE ${MPHS}/" Marlin/Configuration.h | |
sed -i "s/.*#define Z_MIN_PROBE_ENDSTOP_HIT_STATE.*/#define Z_MIN_PROBE_ENDSTOP_HIT_STATE ${MPHS}/" Marlin/Configuration.h | |
sed -i "s/.*#define BLTOUCH/${MPEMP}#define BLTOUCH/" Marlin/Configuration.h | |
sed -i "s/.*#define BIQU_MICROPROBE_V2/${MPDEMP}#define BIQU_MICROPROBE_V2/" Marlin/Configuration.h | |
sed -i "s/.*#define PROBE_ENABLE_DISABLE/${MPDEMP}#define PROBE_ENABLE_DISABLE/" Marlin/Configuration.h | |
pio run | |
mkdir temp | |
mv .pio/build/${AQUILA_VER}F103RC_voxelab_maple/*.bin temp/build.bin | |
env: | |
AQUILA_VER: ${{ matrix.chip }} | |
TP: ${{ matrix.temp }} | |
TJC: ${{ matrix.tjc }} | |
T13: ${{ matrix.t13 }} | |
MP: ${{ matrix.mp }} | |
- 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 | |
Build-UBL-ProUI-PLR-A: # UBL Pro PLR for Aquila | |
name: Build UBL Pro PLR Files A | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [GD32,N32] | |
tjc: [true,false] | |
t13: [true,false] | |
mp: [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 ($TJC); then DTMP=TJC-; else DTMP=; fi; | |
if ($T13); then TTMP=_SPRT13; else TTMP=; fi; | |
if ($MP); then MPTMP=_MP; else MPTMP=; fi; | |
echo "filename=${DTMP}Aquila${TTMP}${MPTMP}_${AVTMP}_UBL-ProUI-PLR$(date +"-%m-%d").bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
cp configurations/Voxelab\ Aquila/UBL/ConfigurationPro.h Marlin/Configuration.h | |
cp configurations/Voxelab\ Aquila/UBL/Configuration_adv.h Marlin/Configuration_adv.h | |
cp configurations/Voxelab\ Aquila/UBL/Version.h Marlin/Version.h | |
sed -i "s/default_envs =.*/default_envs = ${AQUILA_VER}F103RC_voxelab_maple/" platformio.ini | |
sed -i "s/.*#define HAS_CUSTOM_COLORS 1/\/\/#define HAS_CUSTOM_COLORS 1/" Marlin/Configuration.h | |
sed -i "s/.*#define PROUI_ITEM_PLR/#define PROUI_ITEM_PLR/" Marlin/Configuration.h | |
sed -i "s/.*#define POWER_LOSS_RECOVERY/#define POWER_LOSS_RECOVERY/" Marlin/Configuration_adv.h | |
sed -i "s/.*#define NO_HOME_OFFSETS/#define NO_HOME_OFFSETS/" Marlin/Configuration_adv.h | |
if ($T13); then THMP="13"; DSMP="425"; else THMP="1"; DSMP="98"; fi; | |
sed -i "s/.*#define TEMP_SENSOR_0 1/#define TEMP_SENSOR_0 ${THMP}/" Marlin/Configuration.h | |
sed -i "s/.*#define DEFAULT_AXIS_STEPS_PER_UNIT.*/#define DEFAULT_AXIS_STEPS_PER_UNIT { 80,80,400,${DSMP} }/" Marlin/Configuration.h | |
if ($TJC); then TJEMP=; REMP='\/\/'; else TJEMP='\/\/'; REMP=; fi; | |
sed -i "s/.*#define TJC_DISPLAY/${TJEMP}#define TJC_DISPLAY/" Marlin/Configuration.h | |
sed -i "s/.*#define REVERSE_ENCODER_DIRECTION/${REMP}#define REVERSE_ENCODER_DIRECTION/" Marlin/Configuration.h | |
if ($MP); then MPDEMP=; MPEMP='\/\/'; MPHS="LOW"; else MPDEMP='\/\/'; MPEMP=; MPHS="HIGH"; fi; | |
sed -i "s/.*#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN/${MPDEMP}#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN/" Marlin/Configuration.h | |
sed -i "s/.*#define Z_MIN_ENDSTOP_HIT_STATE.*/#define Z_MIN_ENDSTOP_HIT_STATE ${MPHS}/" Marlin/Configuration.h | |
sed -i "s/.*#define Z_MIN_PROBE_ENDSTOP_HIT_STATE.*/#define Z_MIN_PROBE_ENDSTOP_HIT_STATE ${MPHS}/" Marlin/Configuration.h | |
sed -i "s/.*#define BLTOUCH/${MPEMP}#define BLTOUCH/" Marlin/Configuration.h | |
sed -i "s/.*#define BIQU_MICROPROBE_V2/${MPDEMP}#define BIQU_MICROPROBE_V2/" Marlin/Configuration.h | |
sed -i "s/.*#define PROBE_ENABLE_DISABLE/${MPDEMP}#define PROBE_ENABLE_DISABLE/" Marlin/Configuration.h | |
pio run | |
mkdir temp | |
mv .pio/build/${AQUILA_VER}F103RC_voxelab_maple/*.bin temp/build.bin | |
env: | |
AQUILA_VER: ${{ matrix.chip }} | |
TJC: ${{ matrix.tjc }} | |
T13: ${{ matrix.t13 }} | |
MP: ${{ matrix.mp }} | |
- 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 | |
Build-UBL-ProUI-A-IND: # UBL Pro for Aquila X3/S2 | |
name: Build UBL Pro Files A IND | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [GD32,N32] | |
tjc: [true,false] | |
pwr: [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 ($TJC); then DTMP=TJC-; else DTMP=; fi; | |
if ($PWR); then PLTMP=-PLR; else PLTMP=; fi; | |
echo "filename=${DTMP}Aquila_IND_${AVTMP}_UBL-ProUI${PLTMP}$(date +"-%m-%d").bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
cp configurations/Voxelab\ Aquila/X3/Configuration.h Marlin/Configuration.h | |
cp configurations/Voxelab\ Aquila/X3/Configuration_adv.h Marlin/Configuration_adv.h | |
cp configurations/Voxelab\ Aquila/X3/Version.h Marlin/Version.h | |
sed -i "s/default_envs =.*/default_envs = ${AQUILA_VER}F103RC_voxelab_maple/" platformio.ini | |
if ($PWR); then PLMP='\/\/'; PRMP=; else PLMP=; PRMP='\/\/'; fi; | |
sed -i "s/.*#define HAS_CUSTOM_COLORS 1/${PLMP}#define HAS_CUSTOM_COLORS 1/" Marlin/Configuration.h | |
sed -i "s/.*#define POWER_LOSS_RECOVERY/${PRMP}#define POWER_LOSS_RECOVERY/" Marlin/Configuration_adv.h | |
sed -i "s/.*#define CAPABILITIES_REPORT/${PLMP}#define CAPABILITIES_REPORT/" Marlin/Configuration_adv.h | |
if ($TJC); then TJEMP=; REMP='\/\/'; else TJEMP='\/\/'; REMP=; fi; | |
sed -i "s/.*#define TJC_DISPLAY/${TJEMP}#define TJC_DISPLAY/" Marlin/Configuration.h | |
sed -i "s/.*#define REVERSE_ENCODER_DIRECTION/${REMP}#define REVERSE_ENCODER_DIRECTION/" Marlin/Configuration.h | |
pio run | |
mkdir temp | |
mv .pio/build/${AQUILA_VER}F103RC_voxelab_maple/*.bin temp/build.bin | |
env: | |
AQUILA_VER: ${{ matrix.chip }} | |
TJC: ${{ matrix.tjc }} | |
PWR: ${{ matrix.pwr }} | |
- 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 | |
Build-UBL-NoPro-A: # UBL NoPro for Aquila | |
name: Build UBL NoPro Files A | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [GD32,N32] | |
temp: [true,false] | |
inshape: [true,false] | |
tjc: [true,false] | |
mp: [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; | |
if ($TJC); then DTMP=TJC-; else DTMP=; fi; | |
if ($MP); then MPTMP=_MP; else MPTMP=; fi; | |
echo "filename=${DTMP}Aquila${MPTMP}_${AVTMP}_UBL-NoPro${ISTMP}${TPTMP}$(date +"-%m-%d").bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
cp configurations/Voxelab\ Aquila/UBL/Configuration.h Marlin/Configuration.h | |
cp configurations/Voxelab\ Aquila/UBL/Configuration_adv.h Marlin/Configuration_adv.h | |
cp configurations/Voxelab\ Aquila/UBL/Version.h Marlin/Version.h | |
sed -i "s/default_envs =.*/default_envs = ${AQUILA_VER}F103RC_voxelab_maple/" platformio.ini | |
if ($IS); then STEMP=; ITEMP='\/\/'; else STEMP='\/\/'; ITEMP=; 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 CAPABILITIES_REPORT/${ITEMP}#define CAPABILITIES_REPORT/" Marlin/Configuration_adv.h | |
sed -i "s/.*#define NOZZLE_CLEAN_FEATURE/${ITEMP}#define NOZZLE_CLEAN_FEATURE/" Marlin/Configuration.h | |
sed -i "s/.*#define USE_GRID_MESHVIEWER 1/${ITEMP}#define USE_GRID_MESHVIEWER 1/" Marlin/Configuration.h | |
sed -i "s/.*#define SHOW_SPEED_IND/${ITEMP}#define SHOW_SPEED_IND/" Marlin/Configuration.h | |
if [[ $IS == true && $AQUILA_VER == "N32" ]]; then | |
sed -i "s/.*#define G26_MESH_VALIDATION/\/\/#define G26_MESH_VALIDATION/" Marlin/Configuration.h | |
fi; | |
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 | |
sed -i "s/.*#define G26_MESH_VALIDATION/${PTEMP}#define G26_MESH_VALIDATION/" Marlin/Configuration.h | |
sed -i "s/.*#define HAS_CUSTOM_COLORS 1/${PTEMP}#define HAS_CUSTOM_COLORS 1/" Marlin/Configuration.h | |
sed -i "s/.*#define CAPABILITIES_REPORT/${PTEMP}#define CAPABILITIES_REPORT/" Marlin/Configuration_adv.h | |
if ($TJC); then TJEMP=; REMP='\/\/'; else TJEMP='\/\/'; REMP=; fi; | |
sed -i "s/.*#define TJC_DISPLAY/${TJEMP}#define TJC_DISPLAY/" Marlin/Configuration.h | |
sed -i "s/.*#define REVERSE_ENCODER_DIRECTION/${REMP}#define REVERSE_ENCODER_DIRECTION/" Marlin/Configuration.h | |
if ($MP); then MPDEMP=; MPEMP='\/\/'; MPHS="LOW"; else MPDEMP='\/\/'; MPEMP=; MPHS="HIGH"; fi; | |
sed -i "s/.*#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN/${MPDEMP}#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN/" Marlin/Configuration.h | |
sed -i "s/.*#define Z_MIN_ENDSTOP_HIT_STATE.*/#define Z_MIN_ENDSTOP_HIT_STATE ${MPHS}/" Marlin/Configuration.h | |
sed -i "s/.*#define Z_MIN_PROBE_ENDSTOP_HIT_STATE.*/#define Z_MIN_PROBE_ENDSTOP_HIT_STATE ${MPHS}/" Marlin/Configuration.h | |
sed -i "s/.*#define BLTOUCH/${MPEMP}#define BLTOUCH/" Marlin/Configuration.h | |
sed -i "s/.*#define BIQU_MICROPROBE_V2/${MPDEMP}#define BIQU_MICROPROBE_V2/" Marlin/Configuration.h | |
sed -i "s/.*#define PROBE_ENABLE_DISABLE/${MPDEMP}#define PROBE_ENABLE_DISABLE/" Marlin/Configuration.h | |
pio run | |
mkdir temp | |
mv .pio/build/${AQUILA_VER}F103RC_voxelab_maple/*.bin temp/build.bin | |
env: | |
AQUILA_VER: ${{ matrix.chip }} | |
TP: ${{ matrix.temp }} | |
IS: ${{ matrix.inshape }} | |
TJC: ${{ matrix.tjc }} | |
MP: ${{ matrix.mp }} | |
- 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 | |
Build-BLTouch-A: # BLTouch Pro for Aquila | |
name: Build BLT Pro Files A | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [GD32,N32] | |
temp: [true,false] | |
tjc: [true,false] | |
mp: [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 ($TJC); then DTMP=TJC-; else DTMP=; fi; | |
if ($MP); then MPTMP=_MP; else MPTMP=; fi; | |
echo "filename=${DTMP}Aquila${MPTMP}_${AVTMP}_BLT-ProUI${TPTMP}$(date +"-%m-%d").bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
cp configurations/Voxelab\ Aquila/BLT/ConfigurationPro.h Marlin/Configuration.h | |
cp configurations/Voxelab\ Aquila/BLT/Configuration_adv.h Marlin/Configuration_adv.h | |
cp configurations/Voxelab\ Aquila/BLT/Version.h Marlin/Version.h | |
sed -i "s/default_envs =.*/default_envs = ${AQUILA_VER}F103RC_voxelab_maple/" platformio.ini | |
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 | |
sed -i "s/.*#define NOZZLE_CLEAN_FEATURE/${PTEMP}#define NOZZLE_CLEAN_FEATURE/" Marlin/Configuration.h | |
if ($TJC); then TJEMP=; REMP='\/\/'; else TJEMP='\/\/'; REMP=; fi; | |
sed -i "s/.*#define TJC_DISPLAY/${TJEMP}#define TJC_DISPLAY/" Marlin/Configuration.h | |
sed -i "s/.*#define REVERSE_ENCODER_DIRECTION/${REMP}#define REVERSE_ENCODER_DIRECTION/" Marlin/Configuration.h | |
if ($MP); then MPDEMP=; MPEMP='\/\/'; MPHS="LOW"; else MPDEMP='\/\/'; MPEMP=; MPHS="HIGH"; fi; | |
sed -i "s/.*#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN/${MPDEMP}#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN/" Marlin/Configuration.h | |
sed -i "s/.*#define Z_MIN_ENDSTOP_HIT_STATE.*/#define Z_MIN_ENDSTOP_HIT_STATE ${MPHS}/" Marlin/Configuration.h | |
sed -i "s/.*#define Z_MIN_PROBE_ENDSTOP_HIT_STATE.*/#define Z_MIN_PROBE_ENDSTOP_HIT_STATE ${MPHS}/" Marlin/Configuration.h | |
sed -i "s/.*#define BLTOUCH/${MPEMP}#define BLTOUCH/" Marlin/Configuration.h | |
sed -i "s/.*#define BIQU_MICROPROBE_V2/${MPDEMP}#define BIQU_MICROPROBE_V2/" Marlin/Configuration.h | |
sed -i "s/.*#define PROBE_ENABLE_DISABLE/${MPDEMP}#define PROBE_ENABLE_DISABLE/" Marlin/Configuration.h | |
pio run | |
mkdir temp | |
mv .pio/build/${AQUILA_VER}F103RC_voxelab_maple/*.bin temp/build.bin | |
env: | |
AQUILA_VER: ${{ matrix.chip }} | |
TP: ${{ matrix.temp }} | |
TJC: ${{ matrix.tjc }} | |
MP: ${{ matrix.mp }} | |
- 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 | |
Build-BLTouch-NP-A: # BLTouch NoPro for Aquila | |
name: Build BLT NoPro Files A | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [GD32,N32] | |
temp: [true,false] | |
inshape: [true,false] | |
tjc: [true,false] | |
mp: [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; | |
if ($TJC); then DTMP=TJC-; else DTMP=; fi; | |
if ($MP); then MPTMP=_MP; else MPTMP=; fi; | |
echo "filename=${DTMP}Aquila${MPTMP}_${AVTMP}_BLT-NoPro${ISTMP}${TPTMP}$(date +"-%m-%d").bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
cp configurations/Voxelab\ Aquila/BLT/Configuration.h Marlin/Configuration.h | |
cp configurations/Voxelab\ Aquila/BLT/Configuration_adv.h Marlin/Configuration_adv.h | |
cp configurations/Voxelab\ Aquila/BLT/Version.h Marlin/Version.h | |
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 | |
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 | |
if ($TJC); then TJEMP=; REMP='\/\/'; else TJEMP='\/\/'; REMP=; fi; | |
sed -i "s/.*#define TJC_DISPLAY/${TJEMP}#define TJC_DISPLAY/" Marlin/Configuration.h | |
sed -i "s/.*#define REVERSE_ENCODER_DIRECTION/${REMP}#define REVERSE_ENCODER_DIRECTION/" Marlin/Configuration.h | |
if ($MP); then MPDEMP=; MPEMP='\/\/'; MPHS="LOW"; else MPDEMP='\/\/'; MPEMP=; MPHS="HIGH"; fi; | |
sed -i "s/.*#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN/${MPDEMP}#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN/" Marlin/Configuration.h | |
sed -i "s/.*#define Z_MIN_ENDSTOP_HIT_STATE.*/#define Z_MIN_ENDSTOP_HIT_STATE ${MPHS}/" Marlin/Configuration.h | |
sed -i "s/.*#define Z_MIN_PROBE_ENDSTOP_HIT_STATE.*/#define Z_MIN_PROBE_ENDSTOP_HIT_STATE ${MPHS}/" Marlin/Configuration.h | |
sed -i "s/.*#define BLTOUCH/${MPEMP}#define BLTOUCH/" Marlin/Configuration.h | |
sed -i "s/.*#define BIQU_MICROPROBE_V2/${MPDEMP}#define BIQU_MICROPROBE_V2/" Marlin/Configuration.h | |
sed -i "s/.*#define PROBE_ENABLE_DISABLE/${MPDEMP}#define PROBE_ENABLE_DISABLE/" Marlin/Configuration.h | |
pio run | |
mkdir temp | |
mv .pio/build/${AQUILA_VER}F103RC_voxelab_maple/*.bin temp/build.bin | |
env: | |
AQUILA_VER: ${{ matrix.chip }} | |
TP: ${{ matrix.temp }} | |
IS: ${{ matrix.inshape }} | |
TJC: ${{ matrix.tjc }} | |
MP: ${{ matrix.mp }} | |
- 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 | |
Build-UBL-ProUI-A-SKR: # UBL Pro for Aquila, SKR Mini | |
name: Build UBL Pro Files A SKR | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [V3_0,V2_0,V3_0_1] | |
tjc: [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 [ "$SKR" = V3_0 ]; then AVTMP="V3"; STMP="STM32G0B1RE" | |
elif [ "$SKR" = V2_0 ]; then AVTMP="V2"; STMP="STM32F103RC" | |
elif [ "$SKR" = V3_0_1 ]; then AVTMP="V3-0-1"; STMP="STM32F401RC" | |
fi; | |
if ($TJC); then DTMP=TJC-; else DTMP=; fi; | |
echo "filename=${DTMP}Aquila_SKR-Mini-E3-${AVTMP}_UBL-ProUI$(date +"-%m-%d").bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
if [ "$SKR" = V3_0 ]; then | |
cp configurations/BTT-SKR_Mini_E3_V3/ConfigurationUBL.h Marlin/Configuration.h | |
cp configurations/BTT-SKR_Mini_E3_V3/Configuration_adv.h Marlin/Configuration_adv.h | |
cp configurations/BTT-SKR_Mini_E3_V3/Version.h Marlin/Version.h | |
else | |
cp configurations/BTT-SKR_Mini_E3_V2/ConfigurationUBL.h Marlin/Configuration.h | |
cp configurations/BTT-SKR_Mini_E3_V2/Configuration_advUBL.h Marlin/Configuration_adv.h | |
cp configurations/BTT-SKR_Mini_E3_V2/Version.h Marlin/Version.h | |
sed -i "s/.*#define HAS_CUSTOM_COLORS 1/\/\/#define HAS_CUSTOM_COLORS 1/" Marlin/Configuration.h | |
fi; | |
sed -i "s/.*#define MOTHERBOARD BOARD_.*/#define MOTHERBOARD BOARD_BTT_SKR_MINI_E3_${SKR}/" Marlin/Configuration.h | |
if ($TJC); then TJEMP=; REMP='\/\/'; else TJEMP='\/\/'; REMP=; fi; | |
sed -i "s/.*#define TJC_DISPLAY/${TJEMP}#define TJC_DISPLAY/" Marlin/Configuration.h | |
sed -i "s/.*#define REVERSE_ENCODER_DIRECTION/${REMP}#define REVERSE_ENCODER_DIRECTION/" Marlin/Configuration.h | |
sed -i "s/default_envs =.*/default_envs = ${STMP}_btt/" platformio.ini | |
pio run | |
mkdir temp | |
mv .pio/build/${STMP}_btt/*.bin temp/build.bin | |
env: | |
SKR: ${{ matrix.chip }} | |
TJC: ${{ matrix.tjc }} | |
- 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 | |
Build-MM-ProUI-A-SKR: # MM Pro for Aquila, SKR Mini | |
name: Build MM Pro Files A SKR | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [V3_0,V2_0,V3_0_1] | |
tjc: [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 [ "$SKR" = V3_0 ]; then AVTMP="V3"; STMP="STM32G0B1RE" | |
elif [ "$SKR" = V2_0 ]; then AVTMP="V2"; STMP="STM32F103RC" | |
elif [ "$SKR" = V3_0_1 ]; then AVTMP="V3-0-1"; STMP="STM32F401RC" | |
fi; | |
if ($TJC); then DTMP=TJC-; else DTMP=; fi; | |
echo "filename=${DTMP}Aquila_SKR-Mini-E3-${AVTMP}_MM-ProUI$(date +"-%m-%d").bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
if [ "$SKR" = V3_0 ]; then | |
cp configurations/BTT-SKR_Mini_E3_V3/ConfigurationMM.h Marlin/Configuration.h | |
cp configurations/BTT-SKR_Mini_E3_V3/Configuration_adv.h Marlin/Configuration_adv.h | |
cp configurations/BTT-SKR_Mini_E3_V3/Version.h Marlin/Version.h | |
else | |
cp configurations/BTT-SKR_Mini_E3_V2/ConfigurationMM.h Marlin/Configuration.h | |
cp configurations/BTT-SKR_Mini_E3_V2/Configuration_advMM.h Marlin/Configuration_adv.h | |
cp configurations/BTT-SKR_Mini_E3_V2/Version.h Marlin/Version.h | |
fi; | |
sed -i "s/.*#define MOTHERBOARD BOARD_.*/#define MOTHERBOARD BOARD_BTT_SKR_MINI_E3_${SKR}/" Marlin/Configuration.h | |
if ($TJC); then TJEMP=; REMP='\/\/'; else TJEMP='\/\/'; REMP=; fi; | |
sed -i "s/.*#define TJC_DISPLAY/${TJEMP}#define TJC_DISPLAY/" Marlin/Configuration.h | |
sed -i "s/.*#define REVERSE_ENCODER_DIRECTION/${REMP}#define REVERSE_ENCODER_DIRECTION/" Marlin/Configuration.h | |
sed -i "s/default_envs =.*/default_envs = ${STMP}_btt/" platformio.ini | |
pio run | |
mkdir temp | |
mv .pio/build/${STMP}_btt/*.bin temp/build.bin | |
env: | |
SKR: ${{ matrix.chip }} | |
TJC: ${{ matrix.tjc }} | |
- 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 | |
Build-Default-A4: # Default NoPro for Aquila 427 | |
name: Build Default Files A4 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [427,422] | |
temp: [true,false] | |
inshape: [true,false] | |
tjc: [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" = 427 ]; then AVTMP="427"; DBORD='CREALITY_V427'; else AVTMP="422"; DBORD='CREALITY_V422'; fi; | |
if ($TP); then TPTMP=-MPC; else TPTMP=; fi; | |
if ($IS); then ISTMP=-IS; else ISTMP=; fi; | |
if ($TJC); then DTMP=TJC-; else DTMP=; fi; | |
echo "filename=${DTMP}Aquila_${AVTMP}_Default-NoPro${ISTMP}${TPTMP}$(date +"-%m-%d").bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
cp configurations/Voxelab\ Aquila\ 427/Default-NP/Configuration.h Marlin/Configuration.h | |
cp configurations/Voxelab\ Aquila\ 427/Default-NP/Configuration_adv.h Marlin/Configuration_adv.h | |
cp configurations/Voxelab\ Aquila\ 427/Default-NP/Version.h Marlin/Version.h | |
sed -i "s/default_envs =.*/default_envs = STM32F103RE_creality/" platformio.ini | |
sed -i "s/.*#define MOTHERBOARD BOARD_.*/#define MOTHERBOARD BOARD_${DBORD}/" Marlin/Configuration.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 | |
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 | |
if ($TJC); then TJEMP=; REMP='\/\/'; else TJEMP='\/\/'; REMP=; fi; | |
sed -i "s/.*#define TJC_DISPLAY/${TJEMP}#define TJC_DISPLAY/" Marlin/Configuration.h | |
sed -i "s/.*#define REVERSE_ENCODER_DIRECTION/${REMP}#define REVERSE_ENCODER_DIRECTION/" Marlin/Configuration.h | |
pio run | |
mkdir temp | |
mv .pio/build/STM32F103RE_creality/*.bin temp/build.bin | |
env: | |
AQUILA_VER: ${{ matrix.chip }} | |
TP: ${{ matrix.temp }} | |
IS: ${{ matrix.inshape }} | |
TJC: ${{ matrix.tjc }} | |
- 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 | |
Build-Manual-Mesh-A4: # MM Pro for Aquila 427 | |
name: Build Manual-Mesh Files A4 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [427,422] | |
temp: [true,false] | |
inshape: [true,false] | |
tjc: [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" = 427 ]; then AVTMP="427"; DBORD='CREALITY_V427'; else AVTMP="422"; DBORD='CREALITY_V422'; fi; | |
if ($TP); then TPTMP=-MPC; else TPTMP=; fi; | |
if ($IS); then ISTMP=-IS; else ISTMP=; fi; | |
if ($TJC); then DTMP=TJC-; else DTMP=; fi; | |
echo "filename=${DTMP}Aquila_${AVTMP}_MM-ProUI${ISTMP}${TPTMP}$(date +"-%m-%d").bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
cp configurations/Voxelab\ Aquila\ 427/MM/Configuration.h Marlin/Configuration.h | |
cp configurations/Voxelab\ Aquila\ 427/MM/Configuration_adv.h Marlin/Configuration_adv.h | |
cp configurations/Voxelab\ Aquila\ 427/MM/Version.h Marlin/Version.h | |
sed -i "s/default_envs =.*/default_envs = STM32F103RE_creality/" platformio.ini | |
sed -i "s/.*#define MOTHERBOARD BOARD_.*/#define MOTHERBOARD BOARD_${DBORD}/" Marlin/Configuration.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 | |
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 | |
if ($TJC); then TJEMP=; REMP='\/\/'; else TJEMP='\/\/'; REMP=; fi; | |
sed -i "s/.*#define TJC_DISPLAY/${TJEMP}#define TJC_DISPLAY/" Marlin/Configuration.h | |
sed -i "s/.*#define REVERSE_ENCODER_DIRECTION/${REMP}#define REVERSE_ENCODER_DIRECTION/" Marlin/Configuration.h | |
pio run | |
mkdir temp | |
mv .pio/build/STM32F103RE_creality/*.bin temp/build.bin | |
env: | |
AQUILA_VER: ${{ matrix.chip }} | |
TP: ${{ matrix.temp }} | |
IS: ${{ matrix.inshape }} | |
TJC: ${{ matrix.tjc }} | |
- 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 | |
Build-UBL-ProUI-A4: # UBL Pro for Aquila 427 | |
name: Build UBL Pro Files A4 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [427,422] | |
temp: [true,false] | |
inshape: [true,false] | |
tjc: [true,false] | |
t13: [true,false] | |
mp: [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" = 427 ]; then AVTMP="427"; DBORD='CREALITY_V427'; else AVTMP="422"; DBORD='CREALITY_V422'; fi; | |
if ($TP); then TPTMP=-MPC; else TPTMP=; fi; | |
if ($IS); then ISTMP=-IS; else ISTMP=; fi; | |
if ($TJC); then DTMP=TJC-; else DTMP=; fi; | |
if ($T13); then TTMP=_SPRT13; else TTMP=; fi; | |
if ($MP); then MPTMP=_MP; else MPTMP=; fi; | |
echo "filename=${DTMP}Aquila${TTMP}${MPTMP}_${AVTMP}_UBL-ProUI${ISTMP}${TPTMP}$(date +"-%m-%d").bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
cp configurations/Voxelab\ Aquila\ 427/UBL/Configuration.h Marlin/Configuration.h | |
cp configurations/Voxelab\ Aquila\ 427/UBL/Configuration_adv.h Marlin/Configuration_adv.h | |
cp configurations/Voxelab\ Aquila\ 427/UBL/Version.h Marlin/Version.h | |
sed -i "s/default_envs =.*/default_envs = STM32F103RE_creality/" platformio.ini | |
sed -i "s/.*#define MOTHERBOARD BOARD_.*/#define MOTHERBOARD BOARD_${DBORD}/" Marlin/Configuration.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 | |
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 | |
if ($TJC); then TJEMP=; REMP='\/\/'; else TJEMP='\/\/'; REMP=; fi; | |
sed -i "s/.*#define TJC_DISPLAY/${TJEMP}#define TJC_DISPLAY/" Marlin/Configuration.h | |
sed -i "s/.*#define REVERSE_ENCODER_DIRECTION/${REMP}#define REVERSE_ENCODER_DIRECTION/" Marlin/Configuration.h | |
if ($T13); then THMP="13"; else THMP="1"; fi; | |
sed -i "s/.*#define TEMP_SENSOR_0 1/#define TEMP_SENSOR_0 ${THMP}/" Marlin/Configuration.h | |
if ($MP); then MPDEMP=; MPEMP='\/\/'; MPHS="LOW"; else MPDEMP='\/\/'; MPEMP=; MPHS="HIGH"; fi; | |
sed -i "s/.*#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN/${MPDEMP}#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN/" Marlin/Configuration.h | |
sed -i "s/.*#define Z_MIN_ENDSTOP_HIT_STATE.*/#define Z_MIN_ENDSTOP_HIT_STATE ${MPHS}/" Marlin/Configuration.h | |
sed -i "s/.*#define Z_MIN_PROBE_ENDSTOP_HIT_STATE.*/#define Z_MIN_PROBE_ENDSTOP_HIT_STATE ${MPHS}/" Marlin/Configuration.h | |
sed -i "s/.*#define BLTOUCH/${MPEMP}#define BLTOUCH/" Marlin/Configuration.h | |
sed -i "s/.*#define BIQU_MICROPROBE_V2/${MPDEMP}#define BIQU_MICROPROBE_V2/" Marlin/Configuration.h | |
sed -i "s/.*#define PROBE_ENABLE_DISABLE/${MPDEMP}#define PROBE_ENABLE_DISABLE/" Marlin/Configuration.h | |
pio run | |
mkdir temp | |
mv .pio/build/STM32F103RE_creality/*.bin temp/build.bin | |
env: | |
AQUILA_VER: ${{ matrix.chip }} | |
TP: ${{ matrix.temp }} | |
IS: ${{ matrix.inshape }} | |
TJC: ${{ matrix.tjc }} | |
T13: ${{ matrix.t13 }} | |
MP: ${{ matrix.mp }} | |
- 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 | |
Build-BLTouch-A4: # BLTouch Pro for Aquila 427 | |
name: Build BLT Pro Files A4 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [427,422] | |
temp: [true,false] | |
inshape: [true,false] | |
tjc: [true,false] | |
mp: [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" = 427 ]; then AVTMP="427"; DBORD='CREALITY_V427'; else AVTMP="422"; DBORD='CREALITY_V422'; fi; | |
if ($TP); then TPTMP=-MPC; else TPTMP=; fi; | |
if ($IS); then ISTMP=-IS; else ISTMP=; fi; | |
if ($TJC); then DTMP=TJC-; else DTMP=; fi; | |
if ($MP); then MPTMP=_MP; else MPTMP=; fi; | |
echo "filename=${DTMP}Aquila${MPTMP}_${AVTMP}_BLT-ProUI${ISTMP}${TPTMP}$(date +"-%m-%d").bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
cp configurations/Voxelab\ Aquila\ 427/BLT/Configuration.h Marlin/Configuration.h | |
cp configurations/Voxelab\ Aquila\ 427/BLT/Configuration_adv.h Marlin/Configuration_adv.h | |
cp configurations/Voxelab\ Aquila\ 427/BLT/Version.h Marlin/Version.h | |
sed -i "s/default_envs =.*/default_envs = STM32F103RE_creality/" platformio.ini | |
sed -i "s/.*#define MOTHERBOARD BOARD_.*/#define MOTHERBOARD BOARD_${DBORD}/" Marlin/Configuration.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 | |
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 | |
if ($TJC); then TJEMP=; REMP='\/\/'; else TJEMP='\/\/'; REMP=; fi; | |
sed -i "s/.*#define TJC_DISPLAY/${TJEMP}#define TJC_DISPLAY/" Marlin/Configuration.h | |
sed -i "s/.*#define REVERSE_ENCODER_DIRECTION/${REMP}#define REVERSE_ENCODER_DIRECTION/" Marlin/Configuration.h | |
if ($MP); then MPDEMP=; MPEMP='\/\/'; MPHS="LOW"; else MPDEMP='\/\/'; MPEMP=; MPHS="HIGH"; fi; | |
sed -i "s/.*#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN/${MPDEMP}#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN/" Marlin/Configuration.h | |
sed -i "s/.*#define Z_MIN_ENDSTOP_HIT_STATE.*/#define Z_MIN_ENDSTOP_HIT_STATE ${MPHS}/" Marlin/Configuration.h | |
sed -i "s/.*#define Z_MIN_PROBE_ENDSTOP_HIT_STATE.*/#define Z_MIN_PROBE_ENDSTOP_HIT_STATE ${MPHS}/" Marlin/Configuration.h | |
sed -i "s/.*#define BLTOUCH/${MPEMP}#define BLTOUCH/" Marlin/Configuration.h | |
sed -i "s/.*#define BIQU_MICROPROBE_V2/${MPDEMP}#define BIQU_MICROPROBE_V2/" Marlin/Configuration.h | |
sed -i "s/.*#define PROBE_ENABLE_DISABLE/${MPDEMP}#define PROBE_ENABLE_DISABLE/" Marlin/Configuration.h | |
pio run | |
mkdir temp | |
mv .pio/build/STM32F103RE_creality/*.bin temp/build.bin | |
env: | |
AQUILA_VER: ${{ matrix.chip }} | |
TP: ${{ matrix.temp }} | |
IS: ${{ matrix.inshape }} | |
TJC: ${{ matrix.tjc }} | |
MP: ${{ matrix.mp }} | |
- 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 | |
Build-UBL-ProUI-A4-IND: # UBL Pro for Aquila X3/S2 | |
name: Build UBL Pro Files A4 IND | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [427,422] | |
tjc: [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" = 427 ]; then AVTMP="427"; DBORD='CREALITY_V427'; else AVTMP="422"; DBORD='CREALITY_V422'; fi; | |
if ($TJC); then DTMP=TJC-; else DTMP=; fi; | |
echo "filename=${DTMP}Aquila_IND_${AVTMP}_UBL-ProUI$(date +"-%m-%d").bin" >> $GITHUB_OUTPUT | |
> Marlin/Configuration.h | |
> Marlin/Configuration_adv.h | |
> Marlin/Version.h | |
cp configurations/Voxelab\ Aquila\ 427/UBL/Configuration.h Marlin/Configuration.h | |
cp configurations/Voxelab\ Aquila\ 427/UBL/Configuration_adv.h Marlin/Configuration_adv.h | |
cp configurations/Voxelab\ Aquila\ 427/UBL/Version.h Marlin/Version.h | |
sed -i "s/default_envs =.*/default_envs = STM32F103RE_creality/" platformio.ini | |
sed -i "s/.*#define MOTHERBOARD BOARD_.*/#define MOTHERBOARD BOARD_${DBORD}/" Marlin/Configuration.h | |
sed -i "s/.*#define Z_MIN_PROBE_PIN.*/#define Z_MIN_PROBE_PIN PB0/" Marlin/Configuration.h | |
sed -i "/.*#define Z_MIN_PROBE_PIN.*/a\#define SERVO0_PIN PB1" Marlin/Configuration.h | |
sed -i "s/.*#define FIX_MOUNTED_PROBE.*/#define FIX_MOUNTED_PROBE/" Marlin/Configuration.h | |
sed -i "s/.*#define BLTOUCH.*/\/\/#define BLTOUCH/" Marlin/Configuration.h | |
sed -i "s/.*#define NOZZLE_TO_PROBE_OFFSET { -45.*/#define NOZZLE_TO_PROBE_OFFSET { -30.0, 0, 0 }/" Marlin/Configuration.h | |
if ($TJC); then TJEMP=; REMP='\/\/'; else TJEMP='\/\/'; REMP=; fi; | |
sed -i "s/.*#define TJC_DISPLAY/${TJEMP}#define TJC_DISPLAY/" Marlin/Configuration.h | |
sed -i "s/.*#define REVERSE_ENCODER_DIRECTION/${REMP}#define REVERSE_ENCODER_DIRECTION/" Marlin/Configuration.h | |
pio run | |
mkdir temp | |
mv .pio/build/STM32F103RE_creality/*.bin temp/build.bin | |
env: | |
AQUILA_VER: ${{ matrix.chip }} | |
TJC: ${{ matrix.tjc }} | |
- 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 |