From ab88e234348decb5cadc0ea0317c32e970c4102c Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Fri, 19 Apr 2024 19:20:11 +0200 Subject: [PATCH] fix CI to support building both with Arduino release version and future version (currently v3 rc1) --- .github/workflows/push.yml | 19 +++++++++---------- arduino-cli-dev.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 10 deletions(-) create mode 100644 arduino-cli-dev.yaml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index b7b62c6..bc5cfab 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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 diff --git a/arduino-cli-dev.yaml b/arduino-cli-dev.yaml new file mode 100644 index 0000000..174df7a --- /dev/null +++ b/arduino-cli-dev.yaml @@ -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