Skip to content

Commit

Permalink
Eliminate script
Browse files Browse the repository at this point in the history
  • Loading branch information
bertmelis authored May 7, 2024
1 parent b71012d commit 48b205d
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 84 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/build_examples.yml

This file was deleted.

95 changes: 95 additions & 0 deletions .github/workflows/build_platformio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: Build with Platformio

on: [push, pull_request]

jobs:
part-1-esp32:
runs-on: ubuntu-latest
strategy:
matrix:
example: [
examples/GenerateMessage/main.cpp,
examples/LoopbackClientServer/main.cpp
examples/RTU04example/main.cpp,
examples/RTU06example/main.cpp,
examples/RTU0server/main.cpp,
examples/TCP03async/main.cpp,
examples/TCP03example/main.cpp,
]
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 https://github.com/arduino-libraries/Ethernet.git --library me-no-dev/AsyncTCP
- name: Build PlatformIO examples
run: pio ci --lib="." --board=lolin32
env:
PLATFORMIO_CI_SRC: ${{ matrix.example }}

part-2-esp32:
runs-on: ubuntu-latest
strategy:
matrix:
example: [
examples/TCP03example2/main.cpp,
examples/TCPcoilExample/main.cpp,
examples/TCPcoilExample/main.cpp,
examples/EthernetServer/main.cpp,
examples/TCPServerAsync/main.cpp,
examples/WiFi-RTU_Bridge/main.cpp,
examples/WiFi-RTU_Bridge_Filtered/main.cpp,
]
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 https://github.com/arduino-libraries/Ethernet.git --library me-no-dev/AsyncTCP
- name: Build PlatformIO examples
run: pio ci --lib="." --board=lolin32
env:
PLATFORMIO_CI_SRC: ${{ matrix.example }}

part-3-linux:
runs-on: ubuntu-latest
strategy:
matrix:
example: [
examples/Linux/main.cpp
]
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 PlatformIO examples
run: pio ci --lib="." --project-conf="./examples/Linux/platformio.ini"
env:
PLATFORMIO_CI_SRC: ${{ matrix.example }}
46 changes: 29 additions & 17 deletions scripts/platformio.ini → examples/Linux/platformio.ini
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:lolin32]
platform = espressif32
board = lolin32
framework = arduino
lib_ldf_mode = deep+
build_flags =
-Wall
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

;[platformio]
;default_envs = esp8266

[common]
build_flags =
-std=c++11
-pthread
-Wall
-Wextra
-Werror
-DLOG_LEVEL=3
-DLINUX

[env:native]
platform = native
build_flags =
${common.build_flags}
build_type = debug
lib_compat_mode = off
43 changes: 0 additions & 43 deletions scripts/build_examples.sh

This file was deleted.

0 comments on commit 48b205d

Please sign in to comment.