Skip to content

Commit 559372c

Browse files
committed
Test examples building in CI
1 parent d597c29 commit 559372c

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/build.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ '*' ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Install Arduino CLI
15+
uses: arduino/setup-arduino-cli@v1.1.1
16+
- name: ZIP library
17+
run: zip -r FlixPeriph.zip .
18+
- name: Install arduino-cli.yaml
19+
run: cp .github/workflows/arduino-cli.yaml ./
20+
- name: Install ESP32 core
21+
run: |
22+
arduino-cli core update-index --config-file arduino-cli.yaml
23+
arduino-cli core install esp32:esp32
24+
- name: Install library
25+
run: arduino-cli lib install --zip-path FlixPeriph.zip --config-file arduino-cli.yaml
26+
- name: Build MPU9250 example for ESP32
27+
run: cd examples/MPU9250 && arduino-cli compile --fqbn esp32:esp32:esp32
28+
- name: Build MPU9250 example for ESP32 D1 Mini
29+
run: cd examples/MPU9250 && arduino-cli compile --fqbn esp32:esp32:d1_mini
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
board_manager:
2+
additional_urls:
3+
- https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
4+
library:
5+
enable_unsafe_install: true

0 commit comments

Comments
 (0)