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 +