From c8458fcf518d3fb45a224215bdcb8793e1d427d1 Mon Sep 17 00:00:00 2001 From: Jonas Niesner Date: Sun, 21 May 2023 14:29:08 +0200 Subject: [PATCH] Create build-esp32.yml --- .github/workflows/build-esp32.yml | 51 +++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/build-esp32.yml diff --git a/.github/workflows/build-esp32.yml b/.github/workflows/build-esp32.yml new file mode 100644 index 00000000..7c692d90 --- /dev/null +++ b/.github/workflows/build-esp32.yml @@ -0,0 +1,51 @@ +name: ESP32 build + +on: [push,pull_request] + +jobs: + build: + runs-on: ubuntu-22.04 + + 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: Build firmware for ESP32 + run: | + cd ESP32_AP-Flasher + pio run --environment Simple_AP + + - name: Build filesystem for ESP32 + run: | + cd ESP32_AP-Flasher + pio run --target buildfs --environment Simple_AP + + - name: Build firmware for ESP32-S2 + run: | + cd ESP32_AP-Flasher + pio run --environment OpenEPaperLink_Mini_AP + + - name: Build filesystem for ESP32-S2 + run: | + cd ESP32_AP-Flasher + pio run --target buildfs --environment OpenEPaperLink_Mini_AP + + - name: Build firmware for ESP32-S3 + run: | + cd ESP32_AP-Flasher + pio run --environment OpenEPaperLink_AP_and_Flasher + + - name: Build filesystem for ESP32-S3 + run: | + cd ESP32_AP-Flasher + pio run --target buildfs --environment OpenEPaperLink_AP_and_Flasher