From 125f94a60d2c0f920f19f7f373941d8c65977703 Mon Sep 17 00:00:00 2001 From: Friedjof Date: Sat, 30 Sep 2023 17:30:49 +0200 Subject: [PATCH] add: jobs --- .github/workflows/build-esp32dev.yaml | 92 ++++++++++++++++++++++++++- 1 file changed, 89 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-esp32dev.yaml b/.github/workflows/build-esp32dev.yaml index 7beaa7e..3409642 100644 --- a/.github/workflows/build-esp32dev.yaml +++ b/.github/workflows/build-esp32dev.yaml @@ -9,7 +9,7 @@ on: - '*' jobs: - build: + platformio-build-esp32dev: runs-on: ubuntu-latest steps: @@ -26,8 +26,8 @@ jobs: pip install platformio platformio update - - name: Build PlatformIO Project - run: platformio run + - name: Build PlatformIO Project for ESP32 + run: platformio run -e esp32dev - name: Upload Build Artifacts uses: actions/upload-artifact@v2 @@ -38,3 +38,89 @@ jobs: - name: Cleanup run: rm -rf .pio + platformio-build-esp8266: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.11' + + - name: Install PlatformIO + run: | + pip install platformio + platformio update + + - name: Build PlatformIO Project for ESP8266 + run: platformio run -e esp8266 + + - name: Upload Build Artifacts + uses: actions/upload-artifact@v2 + with: + name: platformio-build + path: .pio/build + + - name: Cleanup + run: rm -rf .pio + + platformio-build-fs-esp32dev: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + + - name: Install PlatformIO + run: | + pip install platformio + platformio update + + - name: Build PlatformIO Project for Filesystem + run: pio run -t buildfs -e esp32dev + + - name: Upload Build Artifacts + uses: actions/upload-artifact@v3 + with: + name: platformio-build + path: .pio/build + + - name: Cleanup + run: rm -rf .pio + + platformio-build-fs-esp8266: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + + - name: Install PlatformIO + run: | + pip install platformio + platformio update + + - name: Build PlatformIO Project for Filesystem + run: pio run -t buildfs -e esp8266 + + - name: Upload Build Artifacts + uses: actions/upload-artifact@v3 + with: + name: platformio-build + path: .pio/build + + - name: Cleanup + run: rm -rf .pio