Skip to content

Commit

Permalink
ci: switch to platformio.ini file instead of ci command
Browse files Browse the repository at this point in the history
  • Loading branch information
GwnDaan committed Nov 21, 2023
1 parent 17d76f6 commit 86a0815
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/pio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
example: [examples/virtual_terminal/esp32_platformio_object_pool]

steps:
Expand All @@ -23,9 +23,7 @@ jobs:
python-version: '3.9'
- name: Install PlatformIO Core
run: pip install --upgrade platformio

- name: Install AgIsoStack library in PlatformIO
run: pio pkg install -g -l ./
- name: Build PlatformIO examples
run: pio ci --lib="." --project-option="build_unflags = -std=gnu++11" --project-option="build_flags = -std=gnu++14" --board=denky32
env:
PLATFORMIO_CI_SRC: ${{ matrix.example }}/src
PLATFORMIO_BUILD_FLAGS: -I${{ matrix.example }}/include
run: pio run -d ${{ matrix.example }} -e local_agisostack
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ monitor_speed = 115200
monitor_rts = 0
monitor_dtr = 0
monitor_filters = esp32_exception_decoder

; Mainly for CI reasons, we introduce a new environment for cases
; where AgIsoStack is installed locally
[env:local_agisostack]
extends = env:denky32
lib_deps = AgIsoStack-plus-plus
7 changes: 7 additions & 0 deletions library.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
},
"license": "MIT",
"homepage": "https://isobusplusplus.com/",
"export": {
"include": [
"isobus/*",
"utility/*",
"hardware_integration/*"
]
},
"build": {
"flags": [
"-Ihardware_integration/include",
Expand Down

0 comments on commit 86a0815

Please sign in to comment.