From 076b14d562c7fb3aa79da39895c51d9731f0843e Mon Sep 17 00:00:00 2001 From: Sabas Date: Tue, 29 Oct 2024 10:58:00 -0600 Subject: [PATCH 1/4] feat:update build for beelan example --- .github/workflows/BuildLibrary.yml | 42 ++++++++++++++----- .../basic_lorawan_beelan.ino} | 0 2 files changed, 31 insertions(+), 11 deletions(-) rename examples/{Basic_LoRaWAN_Beelan/Basic_LoRaWAN_Beelan.ino => basic_lorawan_beelan/basic_lorawan_beelan.ino} (100%) diff --git a/.github/workflows/BuildLibrary.yml b/.github/workflows/BuildLibrary.yml index b14c76a..6380297 100644 --- a/.github/workflows/BuildLibrary.yml +++ b/.github/workflows/BuildLibrary.yml @@ -31,28 +31,48 @@ jobs: # You may add a suffix behind the fqbn with "|" to specify one board for e.g. different compile options like arduino:avr:uno|trace ############################################################################################################# arduino-boards-fqbn: - - arduino:avr:uno - - arduino:avr:leonardo - - arduino:samd:nano_33_iot - - arduino:mbed:nano33ble - - esp8266:esp8266:huzzah:eesz=4M3M,xtal=80 - - esp32:esp32:featheresp32:FlashFreq=80 + - arduino:avr:uno|All-US_915 + - arduino:avr:leonardo|All-US_915 + - arduino:samd:nano_33_iot|All-US_915 + - arduino:mbed:nano33ble|All-US_915 + - esp8266:esp8266:huzzah:eesz=4M3M,xtal=80|All-US_915 + - esp32:esp32:featheresp32:FlashFreq=80|All-US_915 # Specify parameters for each board. # Parameters can be: platform-url, examples-exclude and examples-build-properties # With examples-exclude you may exclude specific examples for a board. Use a space separated list. ############################################################################################################# include: - - arduino-boards-fqbn: arduino:avr:uno + - arduino-boards-fqbn: arduino:avr:uno|All-US_915 + build-properties: + All: + -DUS_915 + -DDEBUG - - arduino-boards-fqbn: arduino:avr:leonardo + - arduino-boards-fqbn: arduino:avr:leonardo|All-US_915 + build-properties: + All: + -DUS_915 + -DDEBUG - - arduino-boards-fqbn: arduino:samd:nano_33_iot + - arduino-boards-fqbn: arduino:samd:nano_33_iot|All-US_915 + build-properties: + All: + -DUS_915 + -DDEBUG - - arduino-boards-fqbn: arduino:mbed:nano33ble + - arduino-boards-fqbn: arduino:mbed:nano33ble|All-US_915 + build-properties: + All: + -DUS_915 + -DDEBUG - - arduino-boards-fqbn: esp8266:esp8266:huzzah:eesz=4M3M,xtal=80 + - arduino-boards-fqbn: esp8266:esp8266:huzzah:eesz=4M3M,xtal=80|All-US_915 platform-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json + build-properties: + All: + -DUS_915 + -DDEBUG - arduino-boards-fqbn: esp32:esp32:featheresp32:FlashFreq=80 platform-url: https://dl.espressif.com/dl/package_esp32_index.json diff --git a/examples/Basic_LoRaWAN_Beelan/Basic_LoRaWAN_Beelan.ino b/examples/basic_lorawan_beelan/basic_lorawan_beelan.ino similarity index 100% rename from examples/Basic_LoRaWAN_Beelan/Basic_LoRaWAN_Beelan.ino rename to examples/basic_lorawan_beelan/basic_lorawan_beelan.ino From bdc1b5e48582ae4b496b76b8537aec08075620cf Mon Sep 17 00:00:00 2001 From: Sabas Date: Tue, 29 Oct 2024 11:00:09 -0600 Subject: [PATCH 2/4] feat: extra flags --- .github/workflows/BuildLibrary.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/BuildLibrary.yml b/.github/workflows/BuildLibrary.yml index 6380297..d9b73be 100644 --- a/.github/workflows/BuildLibrary.yml +++ b/.github/workflows/BuildLibrary.yml @@ -36,7 +36,7 @@ jobs: - arduino:samd:nano_33_iot|All-US_915 - arduino:mbed:nano33ble|All-US_915 - esp8266:esp8266:huzzah:eesz=4M3M,xtal=80|All-US_915 - - esp32:esp32:featheresp32:FlashFreq=80|All-US_915 + - esp32:esp32:featheresp32:FlashFreq=80 # Specify parameters for each board. # Parameters can be: platform-url, examples-exclude and examples-build-properties @@ -95,3 +95,4 @@ jobs: platform-url: ${{ matrix.platform-url }} required-libraries: ${{ env.REQUIRED_LIBRARIES }} sketches-exclude: ${{ matrix.sketches-exclude }} + extra-arduino-cli-args: ${{ matrix.extra-arduino-cli-args }} From c3973e127952800b547ba95d36e046328aa4a489 Mon Sep 17 00:00:00 2001 From: Sabas Date: Tue, 29 Oct 2024 11:04:26 -0600 Subject: [PATCH 3/4] feat: update example name --- .github/workflows/BuildLibrary.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/BuildLibrary.yml b/.github/workflows/BuildLibrary.yml index d9b73be..993ddee 100644 --- a/.github/workflows/BuildLibrary.yml +++ b/.github/workflows/BuildLibrary.yml @@ -48,35 +48,30 @@ jobs: All: -DUS_915 -DDEBUG - - arduino-boards-fqbn: arduino:avr:leonardo|All-US_915 build-properties: All: -DUS_915 -DDEBUG - - arduino-boards-fqbn: arduino:samd:nano_33_iot|All-US_915 build-properties: All: -DUS_915 -DDEBUG - - arduino-boards-fqbn: arduino:mbed:nano33ble|All-US_915 build-properties: All: -DUS_915 -DDEBUG - - arduino-boards-fqbn: esp8266:esp8266:huzzah:eesz=4M3M,xtal=80|All-US_915 platform-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json build-properties: All: -DUS_915 -DDEBUG - - arduino-boards-fqbn: esp32:esp32:featheresp32:FlashFreq=80 platform-url: https://dl.espressif.com/dl/package_esp32_index.json - sketches-exclude: Basic_LoRaWAN_Beelan + sketches-exclude: basic_lorawan_beelan # Do not cancel all jobs / architectures if one job fails fail-fast: false @@ -89,7 +84,7 @@ jobs: uses: actions/checkout@master - name: Compile all examples - uses: ArminJo/arduino-test-compile@v3 + uses: ArminJo/arduino-test-compile@master with: arduino-board-fqbn: ${{ matrix.arduino-boards-fqbn }} platform-url: ${{ matrix.platform-url }} From 0eab584e83ec79677a30e6cd0a68757ef9a32538 Mon Sep 17 00:00:00 2001 From: Sabas Date: Tue, 29 Oct 2024 11:35:15 -0600 Subject: [PATCH 4/4] feat:add build propietaries --- .github/workflows/BuildLibrary.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/BuildLibrary.yml b/.github/workflows/BuildLibrary.yml index 993ddee..8b07fe4 100644 --- a/.github/workflows/BuildLibrary.yml +++ b/.github/workflows/BuildLibrary.yml @@ -90,4 +90,5 @@ jobs: platform-url: ${{ matrix.platform-url }} required-libraries: ${{ env.REQUIRED_LIBRARIES }} sketches-exclude: ${{ matrix.sketches-exclude }} + build-properties: ${{ toJson(matrix.build-properties) }} extra-arduino-cli-args: ${{ matrix.extra-arduino-cli-args }}