Skip to content

Commit 22b4441

Browse files
committed
platformio ci
1 parent c413695 commit 22b4441

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.github/workflows/platformio.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,33 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest]
14-
### os: [ubuntu-latest, macos-latest, windows-latest]
15-
### example: [examples/00.HelloWorld/00.HelloWorld.ino, examples/02.QuadcopterAdvanced/02.QuadcopterAdvanced.ino]
1614

1715
steps:
1816
- name: Checkout
1917
uses: actions/checkout@v4
18+
2019
- name: Set up cache for pip
2120
uses: actions/cache@v4
2221
with:
2322
path: |
2423
~/.cache/pip
2524
~/.platformio/.cache
2625
key: ${{ runner.os }}-pio
26+
2727
- name: Set up Python 3.x
2828
uses: actions/setup-python@v5
2929
with:
3030
python-version: "3.x"
31+
3132
- name: Install PlatformIO Core
3233
run: pip install --upgrade platformio
3334

3435
- name: Build 00.HelloWorld
3536
run: pio ci --project-conf="extras/ci/ci_platformio.ini" --lib="." --lib="examples/00.HelloWorld" "examples/00.HelloWorld/00.HelloWorld.ino"
37+
3638
- name: Build 02.QuadcopterAdvanced
3739
run: pio ci --project-conf="extras/ci/ci_platformio.ini" --lib="." --lib="examples/02.QuadcopterAdvanced" "examples/02.QuadcopterAdvanced/02.QuadcopterAdvanced.ino"
3840

39-
### - name: Run PlatformIO
40-
### # NOTE: --lib="examples/00.HelloWorld" to get #include "madflight_config.h" to work...
41-
### run: pio ci --verbose --lib="." --lib="examples/00.HelloWorld" --project-conf="examples/platformio.ini"
42-
### env:
43-
### PLATFORMIO_CI_SRC: ${{ matrix.example }}
44-
4541
- name: PlatformIO prune
4642
if: ${{ always() }}
4743
run: pio system prune -f

examples/platformio.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,6 @@ framework = arduino
101101
lib_deps =
102102
${env.lib_deps}
103103
stm32duino/STM32duino FreeRTOS
104+
build_flags =
105+
-DSERIAL_RX_BUFFER_SIZE=256
106+
-DSERIAL_TX_BUFFER_SIZE=256

extras/ci/ci_platformio.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,6 @@ framework = arduino
103103
lib_deps =
104104
${env.lib_deps}
105105
stm32duino/STM32duino FreeRTOS
106+
build_flags =
107+
-DSERIAL_RX_BUFFER_SIZE=256
108+
-DSERIAL_TX_BUFFER_SIZE=256

0 commit comments

Comments
 (0)