From 2b8a46e377b2af616cfdb784c49801bcfb5d6839 Mon Sep 17 00:00:00 2001 From: lewis Date: Thu, 11 Jan 2024 23:30:30 +0800 Subject: [PATCH] Update CI --- .github/workflows/arduino_ci.yml | 6 ++++-- .github/workflows/esp-idf.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/pio.yml | 7 +++++-- 3 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/esp-idf.yml diff --git a/.github/workflows/arduino_ci.yml b/.github/workflows/arduino_ci.yml index 45a8f13..db5b66f 100644 --- a/.github/workflows/arduino_ci.yml +++ b/.github/workflows/arduino_ci.yml @@ -1,11 +1,13 @@ -name: Arduino_CI +name: Build Arduino on: + workflow_dispatch: pull_request: push: paths: - - "examples/**" - "src/**" + - "examples/**" + - ".github/workflows/arduino_ci.yml" jobs: build: diff --git a/.github/workflows/esp-idf.yml b/.github/workflows/esp-idf.yml new file mode 100644 index 0000000..bbf69b6 --- /dev/null +++ b/.github/workflows/esp-idf.yml @@ -0,0 +1,29 @@ +name: Build esp-idf + +on: + workflow_dispatch: + pull_request: + push: + paths: + - "src/**" + - "examples/ESP_IDF_TouchDrv_Example/**" + - ".github/workflows/esp-idf.yml" + +jobs: + build: + strategy: + matrix: + idf_ver: ["latest"] + runs-on: ubuntu-latest + + container: espressif/idf:${{ matrix.idf_ver }} + steps: + - uses: actions/checkout@v3 + with: + submodules: "recursive" + - name: Build esp-idf examples + shell: bash + run: | + . ${IDF_PATH}/export.sh + cd examples/ESP_IDF_TouchDrv_Example + idf.py build diff --git a/.github/workflows/pio.yml b/.github/workflows/pio.yml index b5b949a..e2b10a8 100644 --- a/.github/workflows/pio.yml +++ b/.github/workflows/pio.yml @@ -1,11 +1,14 @@ -name: PlatformIO CI +name: Build PlatformIO on: + workflow_dispatch: pull_request: push: paths: - - "examples/**" - "src/**" + - "examples/**" + - ".github/workflows/platformio.yml" + - "platformio.ini" jobs: build: