Skip to content

Commit 086fd22

Browse files
authored
Add build workflow (#5)
1 parent 2706a5d commit 086fd22

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build Examples
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
jobs:
6+
build:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
example:
11+
- "libraries/n-able/examples/FreeRTOS"
12+
- "libraries/n-able/examples/BLE_Advertiser"
13+
- "libraries/n-able/examples/BLE_Scan"
14+
variant:
15+
- Generic_nRF51822:chip=xxaa
16+
- Generic_nRF52832
17+
- Generic_nRF52833
18+
- Generic_nRF52840
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Build n-able Arduino
24+
uses: arduino/compile-sketches@v1
25+
with:
26+
cli-version: latest
27+
platforms: |
28+
- name: "h2zero:arm-ble"
29+
source-url: "https://h2zero.github.io/n-able-Arduino/package_n-able_boards_index.json"
30+
version: latest
31+
- name: "h2zero:arm-ble"
32+
source-path: .
33+
libraries: |
34+
- name: NimBLE-Arduino
35+
fqbn: "h2zero:arm-ble:${{ matrix.variant }}"
36+
sketch-paths: ${{ matrix.example }}

0 commit comments

Comments
 (0)