This action uses the platformio cli to build a Marlin firmware binary.
Make sure that in your platformio.ini
you set the default_envs
variable to match your printer. Example for an Ender3 v2:
...
[platformio]
src_dir = Marlin
boards_dir = buildroot/share/PlatformIO/boards
default_envs = STM32F103RET6_creality
include_dir = Marlin
...
location of the resulting binary file
name: Marlin CI
on: [push]
jobs:
build-marlin:
runs-on: ubuntu-latest
name: Build Marlin Firmware
steps:
- uses: actions/checkout@v2
- id: build
uses: Transmitt0r/[email protected]
- uses: actions/upload-artifact@v2
with:
name: firmware.bin
path: "${{ steps.build.outputs.binary }}"