Skip to content

Commit 47c0f41

Browse files
committed
update uplaod paths for build; sync up the main branch build too
1 parent d8712ba commit 47c0f41

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.github/workflows/build-iotnode-lorawan-develop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@ jobs:
8787
- uses: actions/upload-artifact@v3
8888
with:
8989
name: Upload Build
90-
path: sfeIoTNodeLoRaWAN/build/rp2040.rp2040.sparkfun_promicrorp2350/sfeIoTNodeLoRaWAN.ino.uf2
90+
path: sfeIoTNodeLoRaWAN/build/rp2040.rp2040.sparkfun_iotnode_lorawan/sfeIoTNodeLoRaWAN.ino.uf2
9191

9292

.github/workflows/build-iotnode-lorawan.yml

+14-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
workflow_dispatch:
88
branches:
99

10-
# env:
10+
env:
11+
ARDUINO_RP2040_DIR: .arduino15/packages/rp2040/hardware/rp2040/4.3.1
1112
# DATALOGGER_IOT_APP_KEY: ${{ secrets.DATALOGGER_IOT_APP_KEY }}
1213
# DATALOGGER_IOT_ID_KEY: ${{ secrets.DATALOGGER_IOT_ID_KEY }}
1314

@@ -52,17 +53,24 @@ jobs:
5253
- name: Arduino - Install rp2040 platform
5354
run: arduino-cli core install rp2040:[email protected]
5455

55-
- name: Debug ...
56-
run: ls -la $HOME/.arduino15/packages
56+
- name: Patch in our IOT Node boards
57+
run: |
58+
cd patch
59+
cp boards.txt $HOME/$ARDUINO_RP2040_DIR/boards.txt
60+
cp -R sparkfun_iotnode_lorawan $HOME/$ARDUINO_RP2040_DIR/variants/
61+
cp sparkfun_iotnode_lorawan_rp2350.h $HOME/$ARDUINO_RP2040_DIR//pico-sdk/src/boards/include/boards/
62+
cd ..
5763
5864
# install the libraries Flux uses
5965
- name: Install Flux dependant libraries
6066
run: ./flux-sdk/install-libs.sh
6167

68+
# currently using a local copy of the library that removed some warning messages - source is here:
69+
# arduino-cli lib install --git-url "https://github.com/felixgalindo/XBeeArduino.git"
6270
- name: Install The XBee LoRaWAN library
6371
run: |
6472
arduino-cli config set library.enable_unsafe_install true
65-
arduino-cli lib install --git-url "https://github.com/felixgalindo/XBeeArduino.git"
73+
arduino-cli lib install --git-url "https://github.com/gigapod/XBeeArduino.git"
6674
arduino-cli lib install FastLED
6775
6876
# Compile time - build the Firmware for the data logger.
@@ -72,13 +80,13 @@ jobs:
7280

7381
- name: Compile DataLogger firmware binary
7482
run:
75-
arduino-cli compile --fqbn rp2040:rp2040:sparkfun_promicrorp2350 ./sfeIoTNodeLoRaWAN/sfeIoTNodeLoRaWAN.ino
83+
arduino-cli compile --fqbn rp2040:rp2040:sparkfun_iotnode_lorawan ./sfeIoTNodeLoRaWAN/sfeIoTNodeLoRaWAN.ino
7684
--export-binaries --clean --library `pwd`/SparkFun_IoTNodeLoRaWAN
7785

7886
# Upload the build files - bootloader, paritions, firmware
7987
- uses: actions/upload-artifact@v3
8088
with:
8189
name: Upload Build
82-
path: sfeIoTNodeLoRaWAN/build/rp2040.rp2040.sparkfun_promicrorp2350/sfeIoTNodeLoRaWAN.ino.uf2
90+
path: sfeIoTNodeLoRaWAN/build/rp2040.rp2040.sparkfun_iotnode_lorawan/sfeIoTNodeLoRaWAN.ino.uf2
8391

8492

0 commit comments

Comments
 (0)