From 3c8b4d483c6293e7b3df38a989f7332cae7f51e4 Mon Sep 17 00:00:00 2001 From: Sergey Ladanov Date: Tue, 19 Sep 2023 15:33:47 +0300 Subject: [PATCH] init --- Dockerfile | 1 + README.md | 25 +++++++++++++++++++++++-- action.yml | 14 ++++++++++++++ 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 Dockerfile create mode 100644 action.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..36afc04 --- /dev/null +++ b/Dockerfile @@ -0,0 +1 @@ +FROM espressif/idf:latest \ No newline at end of file diff --git a/README.md b/README.md index 63f2aad..9735b78 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,23 @@ -# esp-idf-ci -Building ESP-IDF projects +## Пример настройки CI/CD + +``` + +jobs: + build: + name: Building project + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: make + uses: embedd-actions/esp-idf-ci@latest + with: + IDF_TARGET: esp32 + +``` + +## Доступные версии: + +``` +latest +``` diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..b861349 --- /dev/null +++ b/action.yml @@ -0,0 +1,14 @@ +name: 'ESP-IDF build' +description: 'Building ESP-IDF projects' +inputs: + IDF_TARGET: + description: 'Target device' + required: true + default: esp32 +runs: + using: 'docker' + image: 'Dockerfile' + args: + - idf.py + - build +