-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3ffc2f2
Showing
4 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
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
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/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "Configurations"] | ||
path = Configurations | ||
url = https://github.com/MarlinFirmware/Configurations |
Submodule Configurations
added at
bd963e
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
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). |