88  FIRMWARE_VERSION_MAJOR : 99 
99  FIRMWARE_VERSION_MINOR : 99 
1010  POINTPERFECT_TOKEN : ${{ secrets.POINTPERFECT_TOKEN }} 
11+   # We limit the ESP32 core to v2.0.2
12+   CORE_VERSION : 2.0.2 
1113
1214jobs :
1315  build :
1719
1820    steps :
1921      - name : Checkout 
20-         uses : actions/checkout@master  
22+         uses : actions/checkout@main  
2123
2224      - name : Get current date 
2325        id : date 
5052      - name : Update index 
5153        run : arduino-cli core update-index 
5254
53-       # We limit the ESP32 core to v2.0.2
55+       - name : Update library index 
56+         run : arduino-cli lib update-index 
57+ 
5458      - name : Install platform 
55-         run : arduino-cli core install esp32:esp32@2.0.2  
59+         run : arduino-cli core install esp32:esp32@${{ env.CORE_VERSION }}  
5660
5761      - name : Get Known Libraries 
5862        run : arduino-cli lib install 
@@ -83,14 +87,14 @@ jobs:
8387      # - name: Patch ESP32 Core
8488      #   run: |
8589      #     cd Firmware/RTK_Surveyor/Patch/
86-       #     cp WiFiGeneric.cpp /home/runner/.arduino15/packages/esp32/hardware/esp32/2.0.2 /libraries/WiFi/src/WiFiGeneric.cpp
90+       #     cp WiFiGeneric.cpp /home/runner/.arduino15/packages/esp32/hardware/esp32/${{ env.CORE_VERSION }} /libraries/WiFi/src/WiFiGeneric.cpp
8791
8892      # Patch Server.h to avoid https://github.com/arduino-libraries/Ethernet/issues/88#issuecomment-455498941
8993      # Note: this patch can be removed if/when we upgrade to ESP32 core >= v2.0.6 
9094      - name : Patch ESP32 Server.h for Ethernet 
9195        run : | 
9296          cd Firmware/RTK_Surveyor/Patch/ 
93-           cp Server.h /home/runner/.arduino15/packages/esp32/hardware/esp32/2.0.2 /cores/esp32/Server.h 
97+           cp Server.h /home/runner/.arduino15/packages/esp32/hardware/esp32/${{ env.CORE_VERSION }} /cores/esp32/Server.h 
9498
9599name : Setup Python 
96100        uses : actions/setup-python@v4 
@@ -122,7 +126,7 @@ jobs:
122126
123127      - name : Copy custom app3M_fat9M_16MB.csv 
124128        run :
125-           cp Firmware/app3M_fat9M_16MB.csv /home/runner/.arduino15/packages/esp32/hardware/esp32/2.0.2 /tools/partitions/app3M_fat9M_16MB.csv 
129+           cp Firmware/app3M_fat9M_16MB.csv /home/runner/.arduino15/packages/esp32/hardware/esp32/${{ env.CORE_VERSION }} /tools/partitions/app3M_fat9M_16MB.csv 
126130
127131      - name : Compile Sketch 
128132        run : arduino-cli compile --fqbn "esp32:esp32:esp32":DebugLevel=${{ env.DEBUG_LEVEL }} ./Firmware/RTK_Surveyor/RTK_Surveyor.ino 
@@ -143,7 +147,7 @@ jobs:
143147          mv RTK_Surveyor.ino.elf ${{ env.ARTIFACT }} 
144148
145149name : Upload artifact directory to action - avoid double-zip 
146-         uses : actions/upload-artifact@v3  
150+         uses : actions/upload-artifact@v4  
147151        with : 
148152          name : ${{ env.ARTIFACT }} 
149153          path : Firmware/RTK_Surveyor/build/esp32.esp32.esp32/${{ env.ARTIFACT }} 
0 commit comments