Skip to content

Commit ab88e23

Browse files
committed
fix CI to support building both with Arduino release version and future version (currently v3 rc1)
1 parent 1518f62 commit ab88e23

File tree

2 files changed

+34
-10
lines changed

2 files changed

+34
-10
lines changed

.github/workflows/push.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,27 @@ name: Async TCP CI
22

33
on:
44
push:
5-
branches:
65
pull_request:
6+
workflow_dispatch:
77

88
jobs:
9-
109
build-arduino:
11-
name: Arduino on ${{ matrix.os }}
12-
runs-on: ${{ matrix.os }}
10+
name: ${{ matrix.config }}
11+
runs-on: ubuntu-latest
1312
strategy:
1413
matrix:
15-
os: [ubuntu-latest]
14+
config: [arduino-cli.yaml, arduino-cli-dev.yaml]
1615
steps:
1716
- uses: actions/checkout@v3
1817
- uses: arduino/setup-arduino-cli@v1
1918
- name: Download board
2019
run: |
21-
arduino-cli --config-file arduino-cli.yaml core update-index
22-
arduino-cli --config-file arduino-cli.yaml board listall
23-
arduino-cli --config-file arduino-cli.yaml core install esp32:esp32@2.0.2
20+
arduino-cli --config-file ${{ matrix.config }} core update-index
21+
arduino-cli --config-file ${{ matrix.config }} board listall
22+
arduino-cli --config-file ${{ matrix.config }} core install esp32:esp32
2423
- name: Compile Sketch
25-
run: arduino-cli --config-file arduino-cli.yaml --library ./src/ compile --fqbn esp32:esp32:esp32 ./examples/ClientServer/Client/Client.ino
24+
run: arduino-cli --config-file ${{ matrix.config }} --library ./src/ compile --fqbn esp32:esp32:esp32 ./examples/ClientServer/Client/Client.ino
2625
- name: Compile Sketch with IPv6
2726
env:
2827
LWIP_IPV6: true
29-
run: arduino-cli --config-file arduino-cli.yaml --library ./src/ compile --fqbn esp32:esp32:esp32 ./examples/ClientServer/Client/Client.ino
28+
run: arduino-cli --config-file ${{ matrix.config }} --library ./src/ compile --fqbn esp32:esp32:esp32 ./examples/ClientServer/Client/Client.ino

arduino-cli-dev.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
board_manager:
2+
additional_urls:
3+
- https://espressif.github.io/arduino-esp32/package_esp32_dev_index.json
4+
directories:
5+
builtin.libraries: ./src/
6+
build_cache:
7+
compilations_before_purge: 10
8+
ttl: 720h0m0s
9+
daemon:
10+
port: "50051"
11+
library:
12+
enable_unsafe_install: false
13+
logging:
14+
file: ""
15+
format: text
16+
level: info
17+
metrics:
18+
addr: :9090
19+
enabled: true
20+
output:
21+
no_color: false
22+
sketch:
23+
always_export_binaries: false
24+
updater:
25+
enable_notification: true

0 commit comments

Comments
 (0)