mirror of
https://github.com/me-no-dev/AsyncTCP.git
synced 2025-08-09 15:44:30 +02:00
fix CI to support building both with Arduino release version and future version (currently v3 rc1)
This commit is contained in:
19
.github/workflows/push.yml
vendored
19
.github/workflows/push.yml
vendored
@@ -2,28 +2,27 @@ name: Async TCP CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
build-arduino:
|
||||
name: Arduino on ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: ${{ matrix.config }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
config: [arduino-cli.yaml, arduino-cli-dev.yaml]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: arduino/setup-arduino-cli@v1
|
||||
- name: Download board
|
||||
run: |
|
||||
arduino-cli --config-file arduino-cli.yaml core update-index
|
||||
arduino-cli --config-file arduino-cli.yaml board listall
|
||||
arduino-cli --config-file arduino-cli.yaml core install esp32:esp32@2.0.2
|
||||
arduino-cli --config-file ${{ matrix.config }} core update-index
|
||||
arduino-cli --config-file ${{ matrix.config }} board listall
|
||||
arduino-cli --config-file ${{ matrix.config }} core install esp32:esp32
|
||||
- name: Compile Sketch
|
||||
run: arduino-cli --config-file arduino-cli.yaml --library ./src/ compile --fqbn esp32:esp32:esp32 ./examples/ClientServer/Client/Client.ino
|
||||
run: arduino-cli --config-file ${{ matrix.config }} --library ./src/ compile --fqbn esp32:esp32:esp32 ./examples/ClientServer/Client/Client.ino
|
||||
- name: Compile Sketch with IPv6
|
||||
env:
|
||||
LWIP_IPV6: true
|
||||
run: arduino-cli --config-file arduino-cli.yaml --library ./src/ compile --fqbn esp32:esp32:esp32 ./examples/ClientServer/Client/Client.ino
|
||||
run: arduino-cli --config-file ${{ matrix.config }} --library ./src/ compile --fqbn esp32:esp32:esp32 ./examples/ClientServer/Client/Client.ino
|
||||
|
25
arduino-cli-dev.yaml
Normal file
25
arduino-cli-dev.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
board_manager:
|
||||
additional_urls:
|
||||
- https://espressif.github.io/arduino-esp32/package_esp32_dev_index.json
|
||||
directories:
|
||||
builtin.libraries: ./src/
|
||||
build_cache:
|
||||
compilations_before_purge: 10
|
||||
ttl: 720h0m0s
|
||||
daemon:
|
||||
port: "50051"
|
||||
library:
|
||||
enable_unsafe_install: false
|
||||
logging:
|
||||
file: ""
|
||||
format: text
|
||||
level: info
|
||||
metrics:
|
||||
addr: :9090
|
||||
enabled: true
|
||||
output:
|
||||
no_color: false
|
||||
sketch:
|
||||
always_export_binaries: false
|
||||
updater:
|
||||
enable_notification: true
|
Reference in New Issue
Block a user