From 4dc20c62d2c7367e12bdeba14b505ad424cee772 Mon Sep 17 00:00:00 2001 From: Peter Siegmund Date: Thu, 30 May 2024 08:54:17 +0200 Subject: [PATCH] optimized workflows Signed-off-by: Peter Siegmund --- .github/workflows/esp-idf_build.yml | 4 +++ .github/workflows/platform-io_build.yml | 35 +++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/workflows/platform-io_build.yml diff --git a/.github/workflows/esp-idf_build.yml b/.github/workflows/esp-idf_build.yml index 402386c..563cc54 100644 --- a/.github/workflows/esp-idf_build.yml +++ b/.github/workflows/esp-idf_build.yml @@ -2,7 +2,11 @@ name: Build the ESP-IDF Project on: push: + paths: + - "ePaper-ESP-IDF/**" pull_request: + paths: + - "ePaper-ESP-IDF/**" jobs: build: diff --git a/.github/workflows/platform-io_build.yml b/.github/workflows/platform-io_build.yml new file mode 100644 index 0000000..67ccd9e --- /dev/null +++ b/.github/workflows/platform-io_build.yml @@ -0,0 +1,35 @@ +name: Build the PlatformIO Project + +on: + push: + paths: + - "ePaper/**" + pull_request: + paths: + - "ePaper/**" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: actions/cache@v3 + with: + path: | + ~/.cache/pip + ~/.platformio/.cache + key: ${{ runner.os }}-pio + + - uses: actions/setup-python@v4 + with: + python-version: "3.9" + + - name: Install PlatformIO Core + run: pip install --upgrade platformio + + - name: Static code analysis + run: pio check -d $PWD/ePaper + + - name: Build bare metal + run: pio run -d $PWD/ePaper