From 06ae2e2ae615db0c8605a9810c2e5f3cc48995d1 Mon Sep 17 00:00:00 2001 From: Koichi Hirachi Date: Sun, 19 Nov 2023 12:23:12 +0900 Subject: [PATCH] Delete ESP build check workflow --- .../workflows/esp32-cam-udp-build-check.yaml | 46 +++++++++++++++++++ ...ck.yaml => esp32-control-build-check.yaml} | 6 +-- 2 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/esp32-cam-udp-build-check.yaml rename .github/workflows/{esp-build-check.yaml => esp32-control-build-check.yaml} (91%) diff --git a/.github/workflows/esp32-cam-udp-build-check.yaml b/.github/workflows/esp32-cam-udp-build-check.yaml new file mode 100644 index 00000000..45e77a52 --- /dev/null +++ b/.github/workflows/esp32-cam-udp-build-check.yaml @@ -0,0 +1,46 @@ +name: ESP32 Cam UDP CI + +on: + push: + branches: + - "main" + - "deployment" + paths: + - "hardware/esp32-cam-udp/**" + pull_request: + paths: + - "hardware/esp32-cam-udp/**" + workflow_dispatch: + +jobs: + build: + + runs-on: ubuntu-latest + defaults: + run: + working-directory: hardware/esp32-cam-udp + + steps: + - uses: actions/checkout@v2 + - name: Cache pip + uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Cache PlatformIO + uses: actions/cache@v2 + with: + path: ~/.platformio + key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} + - name: Set up Python + uses: actions/setup-python@v2 + - name: Install PlatformIO + run: | + python -m pip install --upgrade pip + pip install --upgrade platformio + - name: Install library dependencies + run: pio lib -g install 1 + - name: Run PlatformIO + run: pio run \ No newline at end of file diff --git a/.github/workflows/esp-build-check.yaml b/.github/workflows/esp32-control-build-check.yaml similarity index 91% rename from .github/workflows/esp-build-check.yaml rename to .github/workflows/esp32-control-build-check.yaml index 5df8e275..33ce64dd 100644 --- a/.github/workflows/esp-build-check.yaml +++ b/.github/workflows/esp32-control-build-check.yaml @@ -1,4 +1,4 @@ -name: PlatformIO CI +name: ESP32 Control CI on: push: @@ -6,10 +6,10 @@ on: - "main" - "deployment" paths: - - "hardware/**" + - "hardware/esp32-control/**" pull_request: paths: - - "hardware/**" + - "hardware/esp32-control/**" workflow_dispatch: jobs: