Skip to content

Commit 768bff9

Browse files
committed
Update compile-trk-everywhere workflow for v3.0.1
1 parent 126e208 commit 768bff9

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

.github/workflows/compile-rtk-everywhere.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
POINTPERFECT_LBAND_TOKEN: ${{ secrets.POINTPERFECT_LBAND_TOKEN }}
1111
POINTPERFECT_IP_TOKEN: ${{ secrets.POINTPERFECT_IP_TOKEN }}
1212
POINTPERFECT_LBAND_IP_TOKEN: ${{ secrets.POINTPERFECT_LBAND_IP_TOKEN }}
13+
CORE_VERSION: 3.0.1
1314

1415
jobs:
1516
build:
@@ -56,7 +57,7 @@ jobs:
5657
uses: arduino/setup-arduino-cli@v1
5758

5859
- name: Start config file
59-
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"
6061

6162
- name: Update core index
6263
run: arduino-cli core update-index
@@ -65,22 +66,20 @@ jobs:
6566
run: arduino-cli lib update-index
6667

6768
- name: Install platform
68-
run: arduino-cli core install esp32:esp32@2.0.11
69+
run: arduino-cli core install esp32:esp32@${{ env.CORE_VERSION }}
6970

7071
- name: Get Known Libraries
7172
run: arduino-cli lib install
7273
7374
7475
7576
"ESP32-OTA-Pull"@1.0.0
76-
7777
7878
7979
"SdFat"@2.1.1
8080
"SparkFun LIS2DH12 Arduino Library"@1.0.3
8181
"SparkFun MAX1704x Fuel Gauge Arduino Library"@1.0.4
8282
"SparkFun u-blox GNSS v3"@3.1.5
83-
8483
"SparkFun Qwiic OLED Arduino Library"@1.0.13
8584
8685
"SparkFun Extensible Message Parser"@1.0.0
@@ -90,14 +89,12 @@ jobs:
9089
"SparkFun IM19 IMU Arduino Library"@1.0.1
9190
"SparkFun UM980 Triband RTK GNSS Arduino Library"@1.0.4
9291

93-
- name: Enable external libs
94-
run: arduino-cli config set library.enable_unsafe_install true
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
9597
96-
- name: Get Libraries
97-
run: arduino-cli lib install --git-url
98-
https://github.com/me-no-dev/ESPAsyncWebServer.git
99-
https://github.com/me-no-dev/AsyncTCP.git
100-
10198
- name: Setup Python
10299
uses: actions/setup-python@v4
103100
with:
@@ -128,13 +125,13 @@ jobs:
128125

129126
- name: Copy custom RTKEverywhere.csv
130127
run:
131-
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
132129

133130
- name: Compile Sketch
134131
run: arduino-cli compile --fqbn "esp32:esp32:esp32":DebugLevel=${{ env.DEBUG_LEVEL }},PSRAM=enabled ./Firmware/RTK_Everywhere/RTK_Everywhere.ino
135132
--build-property build.partitions=RTKEverywhere
136133
--build-property upload.maximum_size=3145728
137-
--build-property "compiler.cpp.extra_flags=\"-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 }}\""
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 }}\""
138135
--export-binaries
139136

140137
- name: Rename binary

0 commit comments

Comments
 (0)