Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
m-roberts committed Jan 24, 2022
0 parents commit 3ffc2f2
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/marlin-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build Marlin Firmware

on:
push:
branches:
- master
paths:
- 'Configuration/**.h'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
env:
BOARD: "STM32F070CB_malyan"
USE_TAG: "2.0.9.3" # match with checkout of 'Configurations' submodule

steps:
- name: Check out repo
uses: actions/checkout@v2
with:
submodules: 'recursive'

- name: Generate configuration from example
run: |
mkdir -p ${{ github.workspace }}/M200_v2 ${{ github.workspace }}/Builds
cp ${{ github.workspace }}/Configurations/config/examples/Malyan/M200/* ${{ github.workspace }}/M200_v2
sed -i 's/BOARD_MALYAN_M200/BOARD_MALYAN_M200_V2/1' ${{ github.workspace }}/M200_v2/Configuration.h
- name: Compile firmware
run: |
docker run \
-u root:root \
-e BOARD \
-e UPDATE_FORCE=true \
-e USE_TAG \
-v ${{ github.workspace }}/Builds:/home/platformio/build \
-v ${{ github.workspace }}/M200_v2:/home/platformio/CustomConfiguration \
frealmyr/marlin-build:latest
- run: |
sudo cp ${{ github.workspace }}/Builds/STM32F070CB_malyan/firmware.bin ${{ github.workspace }}/Builds/STM32F070CB_malyan/update.bin
sudo cp ${{ github.workspace }}/Builds/STM32F070CB_malyan/firmware.bin ${{ github.workspace }}/Builds/STM32F070CB_malyan/fcupdate.flg
- uses: actions/upload-artifact@v2
with:
name: Firmware
path: ${{ github.workspace }}/Builds/STM32F070CB_malyan/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "Configurations"]
path = Configurations
url = https://github.com/MarlinFirmware/Configurations
1 change: 1 addition & 0 deletions Configurations
Submodule Configurations added at bd963e
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Marlin v2.0.9.3 - Monoprice Select Mini v2

An automated workflow for building Marlin v2.0.9.3 for the Monoprice Select Mini v2 (Malyan M200 v2).

0 comments on commit 3ffc2f2

Please sign in to comment.