Build MKS 2560 Marlin Firmware #118
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: Build MKS 2560 Marlin Firmware | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'Firmware/configuration/mega2560/**.h' | |
workflow_dispatch: | |
jobs: | |
build_and_push: | |
name: Compile and Push Firmware | |
runs-on: ubuntu-latest | |
env: | |
BOARD: mega2560 | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4.1.4 | |
- name: Compile firmware | |
run: | | |
docker run \ | |
-u root:root \ | |
-e BOARD \ | |
-e UPDATE_FORCE=true \ | |
-e USE_BRANCH=BrailleRAP \ | |
-e FW_EXTENSION=hex \ | |
-v $(pwd)/Firmware/builds:/home/platformio/build \ | |
-v $(pwd)/Firmware/configuration/mega2560:/home/platformio/CustomConfiguration \ | |
sgngodin/braillerap-marlin-build:latest | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4.3.3 | |
with: | |
name: mega2560 | |
path: Firmware/builds/mega2560/*.hex | |
- name: Remove old artifacts | |
uses: c-hive/gha-remove-artifacts@v1 | |
with: | |
age: '1 days' # '<number> <unit>', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js | |
# Optional inputs | |
# skip-tags: true | |
skip-recent: 2 |