Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
thiago-scherrer committed Jul 4, 2021
1 parent e98edfa commit 7401e08
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
max_line_length = 80
trim_trailing_whitespace = true
insert_final_newline = true

[**.{md,rst}]
trim_trailing_whitespace = false

[.git*]
indent_style = tab

[{**.*sh,test/run}]
indent_style = tab
indent_size = 4
shell_variant = bash
binary_next_line = true # like -bn
switch_case_indent = true # like -ci
space_redirects = true # like -sr
keep_padding = false # like -kp
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.7-buster

ENV PIO_URL https://github.com/platformio/platformio-core/archive/develop.zip

RUN pip install -U ${PIO_URL} \
&& platformio update

COPY bin/entrypoint.sh /bin/entrypoint.sh

ENTRYPOINT ["/bin/entrypoint.sh"]
13 changes: 13 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# action.yml
name: 'mabg'
description: 'Marlin auto build generation with github action'
inputs:
branch: # branch of Marlin repo to use
description: 'Marlin branch repo'
required: false
default: '2.0.x'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.branch }}
7 changes: 7 additions & 0 deletions bin/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

function clone () {
git clone https://github.com/MarlinFirmware/Marlin.git -b $1
}

clone

0 comments on commit 7401e08

Please sign in to comment.