Skip to content

Commit 2b0cdb7

Browse files
committed
Add n-able platformio build test.
1 parent 8161bee commit 2b0cdb7

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

.github/workflows/build.yml

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,47 @@ jobs:
9292
source-url: "https://h2zero.github.io/n-able-Arduino/package_n-able_boards_index.json"
9393
version: latest
9494
fqbn: "h2zero:arm-ble:${{ matrix.variant }}"
95-
sketch-paths: ${{ matrix.example }}
95+
sketch-paths: ${{ matrix.example }}
96+
97+
build_n-able-pio:
98+
strategy:
99+
fail-fast: false
100+
matrix:
101+
example:
102+
- "examples/NimBLE_Client"
103+
- "examples/NimBLE_Server"
104+
runs-on: ubuntu-latest
105+
steps:
106+
- uses: actions/checkout@v2
107+
- name: Set up Python
108+
uses: actions/setup-python@v1
109+
with:
110+
python-version: "3.x"
111+
- name: Install platformio
112+
run: |
113+
python -m pip install --upgrade pip
114+
pip install platformio
115+
- name: Build esp PIO
116+
run: |
117+
mkdir -p example/lib
118+
rsync -Rr . example/lib/
119+
mkdir example/src
120+
cat > example/platformio.ini << EOF
121+
[env]
122+
platform = https://github.com/h2zero/platform-n-able.git#1.0.0
123+
framework = arduino
124+
125+
[env:generic_nrf51822_xxaa
126+
board = generic_nrf51822_xxaa
127+
128+
[env:generic_nrf52832]
129+
board = generic_nrf52832
130+
131+
[env:generic_nrf52833]
132+
board = generic_nrf52833
133+
134+
[env:generic_nrf52840]
135+
board = generic_nrf52840
136+
EOF
137+
cp ${{ matrix.example }}/* example/src/
138+
platformio run -d example

0 commit comments

Comments
 (0)