Skip to content

Commit

Permalink
add: jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Friedjof committed Sep 30, 2023
1 parent 7610752 commit 125f94a
Showing 1 changed file with 89 additions and 3 deletions.
92 changes: 89 additions & 3 deletions .github/workflows/build-esp32dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- '*'

jobs:
build:
platformio-build-esp32dev:
runs-on: ubuntu-latest

steps:
Expand All @@ -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
Expand All @@ -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

0 comments on commit 125f94a

Please sign in to comment.