Marlin auto build generation with github action
I use a rapyberry as my personal computer (yes) and compiling Marlin for my ender3 is tiring. So I created this action to help
- Fork Marlin's Repository, make all the changes you need to this fork to make
it work on your printer and then create a new action file on
.github/workflows/build.yml
with this content:
name: Firmware build
on:
push:
branches: 2.0.x
jobs:
build:
name: Build firmware
runs-on: ubuntu-latest
steps:
-
name: Check out
uses: actions/checkout@v2
-
name: Marlin auto build generation
uses: thiago-scherrer/[email protected]
-
name: Upload firmware
uses: actions/upload-artifact@v2
with:
name: firmware1.2
path: .pio/build/STM32F103RC_btt/firmware.bin
I'm using the branch branches: 2.0.x
, change it to another if that's your case
If you are using other firmware in your PIO file, change
.pio/build/STM32F103RC_btt/firmware.bin
it to the version you are using.
- Push it to your fork and then if everything works out, you can download the compiled binary in your build artifacts:
How to keep the Marlin fork updated?
$ git pull upstream 2.0.x
#Send the updates to your repository.
$git push origin 2.0.x