-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
124 additions
and
84 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.