5
5
6
6
env :
7
7
FILENAME_PREFIX : RTK_Everywhere_Firmware
8
- FIRMWARE_VERSION_MAJOR : 0
9
- FIRMWARE_VERSION_MINOR : 9
8
+ FIRMWARE_VERSION_MAJOR : 99
9
+ FIRMWARE_VERSION_MINOR : 99
10
10
POINTPERFECT_LBAND_TOKEN : ${{ secrets.POINTPERFECT_LBAND_TOKEN }}
11
11
POINTPERFECT_IP_TOKEN : ${{ secrets.POINTPERFECT_IP_TOKEN }}
12
+ POINTPERFECT_LBAND_IP_TOKEN : ${{ secrets.POINTPERFECT_LBAND_IP_TOKEN }}
13
+ CORE_VERSION : 3.0.1
12
14
13
15
jobs :
14
16
build :
55
57
uses : arduino/setup-arduino-cli@v1
56
58
57
59
- name : Start config file
58
- run : arduino-cli config init --additional-urls "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json"
60
+ run : arduino-cli config init --additional-urls "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json,https://espressif.github.io/arduino-esp32/package_esp32_dev_index.json "
59
61
60
62
- name : Update core index
61
63
run : arduino-cli core update-index
@@ -64,45 +66,34 @@ jobs:
64
66
run : arduino-cli lib update-index
65
67
66
68
- name : Install platform
67
- run : arduino-cli core install esp32:esp32@2.0.11
69
+ run : arduino-cli core install esp32:esp32@${{ env.CORE_VERSION }}
68
70
69
71
- name : Get Known Libraries
70
72
run : arduino-cli lib install
71
73
72
74
73
75
74
76
" ESP32-OTA-Pull" @1.0.0
75
-
76
77
77
78
78
79
" SdFat" @2.1.1
79
80
" SparkFun LIS2DH12 Arduino Library" @1.0.3
80
81
" SparkFun MAX1704x Fuel Gauge Arduino Library" @1.0.4
81
- " SparkFun u-blox GNSS v3" @3.1.4
82
-
82
+ " SparkFun u-blox GNSS v3" @3.1.5
83
83
" SparkFun Qwiic OLED Arduino Library" @1.0.13
84
84
85
-
86
85
" SparkFun Extensible Message Parser" @1.0.0
87
86
" SparkFun BQ40Z50 Battery Manager Arduino Library" @1.0.0
88
87
" ArduinoMqttClient" @0.1.8
88
+ " SparkFun u-blox PointPerfect Library" @1.11.4
89
+ " SparkFun IM19 IMU Arduino Library" @1.0.1
90
+ " SparkFun UM980 Triband RTK GNSS Arduino Library" @1.0.4
89
91
90
- - name : Enable external libs
91
- run : arduino-cli config set library.enable_unsafe_install true
92
-
93
- - name : Get Libraries
94
- run : arduino-cli lib install --git-url
95
- https://${{ secrets.GET_PRIVATE_PPL_LIBRARY }}@github.com/sparkfun/SparkFun_u-blox_PointPerfect_Library.git
96
- https://${{ secrets.GET_PRIVATE_IM19_LIBRARY }}@github.com/sparkfun/SparkFun_IM19_IMU_Arduino_Library.git
97
- https://github.com/sparkfun/SparkFun_Unicore_GNSS_Arduino_Library.git
98
- https://github.com/me-no-dev/ESPAsyncWebServer.git
99
- https://github.com/me-no-dev/AsyncTCP.git
100
-
101
- # Incorporate ESP-Now patch into core: https://github.com/espressif/arduino-esp32/pull/7044/files
102
- # - name: Patch ESP32 Core
103
- # run: |
104
- # cd Firmware/RTK_Everywhere/Patch/
105
- # cp WiFiGeneric.cpp /home/runner/.arduino15/packages/esp32/hardware/esp32/2.0.2/libraries/WiFi/src/WiFiGeneric.cpp
92
+ # https://github.com/avinabmalla/ESP32_BleSerial/issues/15
93
+ - name : Patch ESP32_BleSerial BLECharacteristic
94
+ run : |
95
+ cd Firmware/RTK_Everywhere/Patch/
96
+ cp BleSerial.cpp /home/runner/Arduino/libraries/ESP32_BleSerial/src/BleSerial.cpp
106
97
107
98
- name : Setup Python
108
99
uses : actions/setup-python@v4
@@ -134,13 +125,13 @@ jobs:
134
125
135
126
- name : Copy custom RTKEverywhere.csv
136
127
run :
137
- cp Firmware/RTKEverywhere.csv /home/runner/.arduino15/packages/esp32/hardware/esp32/2.0.11 /tools/partitions/RTKEverywhere.csv
128
+ cp Firmware/RTKEverywhere.csv /home/runner/.arduino15/packages/esp32/hardware/esp32/${{ env.CORE_VERSION }} /tools/partitions/RTKEverywhere.csv
138
129
139
130
- name : Compile Sketch
140
131
run : arduino-cli compile --fqbn "esp32:esp32:esp32":DebugLevel=${{ env.DEBUG_LEVEL }},PSRAM=enabled ./Firmware/RTK_Everywhere/RTK_Everywhere.ino
141
132
--build-property build.partitions=RTKEverywhere
142
133
--build-property upload.maximum_size=3145728
143
- --build-property "compiler.cpp.extra_flags=\"-DPOINTPERFECT_LBAND_TOKEN=$POINTPERFECT_LBAND_TOKEN\" \"-DPOINTPERFECT_IP_TOKEN=$POINTPERFECT_IP_TOKEN\" \"-DFIRMWARE_VERSION_MAJOR=$FIRMWARE_VERSION_MAJOR\" \"-DFIRMWARE_VERSION_MINOR=$FIRMWARE_VERSION_MINOR\" \"-DENABLE_DEVELOPER=${{ env.ENABLE_DEVELOPER }}\""
134
+ --build-property "compiler.cpp.extra_flags=-MMD -c \"-DPOINTPERFECT_LBAND_TOKEN=$POINTPERFECT_LBAND_TOKEN\" \"-DPOINTPERFECT_IP_TOKEN=$POINTPERFECT_IP_TOKEN\" \"-DPOINTPERFECT_LBAND_IP_TOKEN=$POINTPERFECT_LBAND_IP_TOKEN \" \"-DFIRMWARE_VERSION_MAJOR=$FIRMWARE_VERSION_MAJOR\" \"-DFIRMWARE_VERSION_MINOR=$FIRMWARE_VERSION_MINOR\" \"-DENABLE_DEVELOPER=${{ env.ENABLE_DEVELOPER }}\""
144
135
--export-binaries
145
136
146
137
- name : Create artifact name
0 commit comments