From 7401e08ac632ffbcd073385a255b0558689762b6 Mon Sep 17 00:00:00 2001 From: thiago-scherrer Date: Sun, 4 Jul 2021 09:37:53 -0300 Subject: [PATCH] WIP --- .editorconfig | 27 +++++++++++++++++++++++++++ Dockerfile | 10 ++++++++++ action.yml | 13 +++++++++++++ bin/entrypoint.sh | 7 +++++++ 4 files changed, 57 insertions(+) create mode 100644 .editorconfig create mode 100644 Dockerfile create mode 100644 action.yml create mode 100644 bin/entrypoint.sh diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..aa3c4dc --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e6be3eb --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..021e072 --- /dev/null +++ b/action.yml @@ -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 }} diff --git a/bin/entrypoint.sh b/bin/entrypoint.sh new file mode 100644 index 0000000..e99fd86 --- /dev/null +++ b/bin/entrypoint.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +function clone () { + git clone https://github.com/MarlinFirmware/Marlin.git -b $1 +} + +clone