commit 87d246831364a442dc76714ee4d03f3d30a6f486 Author: Sergey Ladanov Date: Wed Sep 13 13:50:57 2023 +0300 add diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..244ddf2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM debian:stable-slim + +RUN apt-get update && \ + apt-get install \ + python3 \ + python3-pip \ + -y && \ + rm -rf /var/cache/apt && \ + pip3 install platformio \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..9bac4c9 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +## Пример настройки CI/CD + +``` + +jobs: + build: + name: Building project + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Build + uses: embedd-actions/platformio-ci@v1 + + +``` diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..f06496c --- /dev/null +++ b/action.yml @@ -0,0 +1,9 @@ +name: 'Platformio build' +description: 'Building platformio projects' +runs: + using: 'docker' + image: 'Dockerfile' + args: + - pio + - run +