Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bertmelis committed Nov 25, 2023
1 parent f2f1591 commit aed4a5c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 28 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build_arduino_ide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ jobs:
- name: esp8266:esp8266
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
sketch-paths: |
- examples/simple-read
- examples/simple-write
- examples/simple-read-VS1
- examples/simple-read-VS2
- examples/simple-write-VS1
- examples/simple-write-VS2
libraries: |
- name: VitoWiFi
source-path: ./
Expand All @@ -47,8 +49,10 @@ jobs:
- name: esp32:esp32
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
sketch-paths: |
- examples/simple-read
- examples/simple-write
- examples/simple-read-VS1
- examples/simple-read-VS2
- examples/simple-write-VS1
- examples/simple-write-VS2
libraries: |
- name: VitoWiFi
source-path: ./
Expand Down
58 changes: 34 additions & 24 deletions .github/workflows/build_platformio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
example: [examples/simple-read/simple-read.ino, examples/simple-write/simple-write.ino]
example: [
examples/simple-read-VS1/simple-read-VS1.ino,
examples/simple-read-VS2/simple-read-VS2.ino,
examples/simple-write-VS1/simple-write-VS1.ino,
examples/simple-write-VS2/simple-write-VS2.ino
]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
Expand All @@ -29,26 +34,31 @@ jobs:
PLATFORMIO_CI_SRC: ${{ matrix.example }}

build-for-esp32:
runs-on: ubuntu-latest
strategy:
matrix:
example: [examples/simple-read/simple-read.ino, examples/simple-write/simple-write.ino]
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: Download external libraries
run: pio pkg install --global --library plerup/EspSoftwareSerial
- name: Build PlatformIO examples
run: pio ci --lib="." --board=lolin32
env:
PLATFORMIO_CI_SRC: ${{ matrix.example }}
runs-on: ubuntu-latest
strategy:
matrix:
example: [
examples/simple-read-VS1/simple-read-VS1.ino,
examples/simple-read-VS2/simple-read-VS2.ino,
examples/simple-write-VS1/simple-write-VS1.ino,
examples/simple-write-VS2/simple-write-VS2.ino
]
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: Download external libraries
run: pio pkg install --global --library plerup/EspSoftwareSerial
- name: Build PlatformIO examples
run: pio ci --lib="." --board=lolin32
env:
PLATFORMIO_CI_SRC: ${{ matrix.example }}

0 comments on commit aed4a5c

Please sign in to comment.