Skip to content

Commit 64b0b58

Browse files
authored
Merge pull request #189 from sparkfun/Display_Refactoring
Update non-release build - artifact is a zip of the firmware, bootloader and partitions .bin's
2 parents ea782eb + 504cf37 commit 64b0b58

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

.github/workflows/non-release-build.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build RTK Everywhere (Non-Release)
1+
name: Non-Release Build
22
on:
33
workflow_dispatch:
44
branches:
@@ -145,13 +145,21 @@ jobs:
145145
--build-property "compiler.cpp.extra_flags=\"-DPOINTPERFECT_LBAND_PAID_TOKEN=$POINTPERFECT_LBAND_PAID_TOKEN\" \"-DPOINTPERFECT_LBAND_FREE_TOKEN=$POINTPERFECT_LBAND_FREE_TOKEN\" \"-DPOINTPERFECT_IP_PAID_TOKEN=$POINTPERFECT_IP_PAID_TOKEN\" \"-DPOINTPERFECT_IP_FREE_TOKEN=$POINTPERFECT_IP_FREE_TOKEN\" \"-DFIRMWARE_VERSION_MAJOR=$FIRMWARE_VERSION_MAJOR\" \"-DFIRMWARE_VERSION_MINOR=$FIRMWARE_VERSION_MINOR\" \"-DENABLE_DEVELOPER=${{ env.ENABLE_DEVELOPER }}\""
146146
--export-binaries
147147

148-
- name: Rename binary
148+
- name: Create artifact name
149+
run: |
150+
echo "ARTIFACT=${{ env.FILENAME_PREFIX }}${{ env.FILE_ENDING_UNDERSCORE }}" >> $GITHUB_ENV
151+
152+
- name: Create artifact directory
149153
run: |
150154
cd Firmware/RTK_Everywhere/build/esp32.esp32.esp32/
151-
mv RTK_Everywhere.ino.bin ${{ env.FILENAME_PREFIX }}${{ env.FILE_ENDING_UNDERSCORE }}.bin
155+
mkdir ${{ env.ARTIFACT }}
156+
mv RTK_Everywhere.ino.bin ${{ env.ARTIFACT }}
157+
mv RTK_Everywhere.ino.bootloader.bin ${{ env.ARTIFACT }}
158+
mv RTK_Everywhere.ino.partitions.bin ${{ env.ARTIFACT }}
152159
153-
- name: Upload binary to action
160+
- name: Upload artifact directory to action - avoid double-zip
154161
uses: actions/upload-artifact@v3
155162
with:
156-
name: ${{ env.FILENAME_PREFIX }}${{ env.FILE_ENDING_UNDERSCORE }}
157-
path: ./Firmware/RTK_Everywhere/build/esp32.esp32.esp32/${{ env.FILENAME_PREFIX }}${{ env.FILE_ENDING_UNDERSCORE }}.bin
163+
name: ${{ env.ARTIFACT }}
164+
path: Firmware/RTK_Everywhere/build/esp32.esp32.esp32/${{ env.ARTIFACT }}
165+
retention-days: 7

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Individual files - e.g. compiled binaries or local batch files - can be added to .git/info/exclude
2+
13
partitions.csv
24

35
tokens.h

Firmware/RTK_Everywhere/form.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
// python main_js_zipper.py
2727

2828
static const uint8_t main_js[] PROGMEM = {
29-
0x1F, 0x8B, 0x08, 0x08, 0x5E, 0x6F, 0xEB, 0x65, 0x02, 0xFF, 0x6D, 0x61, 0x69, 0x6E, 0x2E, 0x6A,
29+
0x1F, 0x8B, 0x08, 0x08, 0x70, 0x34, 0xF4, 0x65, 0x02, 0xFF, 0x6D, 0x61, 0x69, 0x6E, 0x2E, 0x6A,
3030
0x73, 0x2E, 0x67, 0x7A, 0x69, 0x70, 0x00, 0xED, 0x7D, 0xEB, 0x7A, 0xDB, 0x38, 0x92, 0xE8, 0xFF,
3131
0x3C, 0x05, 0x46, 0xDB, 0xA7, 0x25, 0x4D, 0x64, 0x99, 0x92, 0x2F, 0xB9, 0x38, 0xF6, 0x1E, 0xDF,
3232
0x92, 0x78, 0x27, 0x76, 0xFC, 0x59, 0x4E, 0x77, 0x27, 0x3D, 0x39, 0x5E, 0x5A, 0x84, 0x65, 0x4E,
@@ -774,7 +774,7 @@ static const uint8_t main_js[] PROGMEM = {
774774
// python index_html_zipper.py
775775

776776
static const uint8_t index_html[] PROGMEM = {
777-
0x1F, 0x8B, 0x08, 0x08, 0x5E, 0x6F, 0xEB, 0x65, 0x02, 0xFF, 0x69, 0x6E, 0x64, 0x65, 0x78, 0x2E,
777+
0x1F, 0x8B, 0x08, 0x08, 0x70, 0x34, 0xF4, 0x65, 0x02, 0xFF, 0x69, 0x6E, 0x64, 0x65, 0x78, 0x2E,
778778
0x68, 0x74, 0x6D, 0x6C, 0x2E, 0x67, 0x7A, 0x69, 0x70, 0x00, 0xED, 0x7D, 0xDB, 0x72, 0xDB, 0xC8,
779779
0x92, 0xE0, 0xBB, 0xBF, 0xA2, 0x86, 0xB3, 0xB3, 0x96, 0xE6, 0x88, 0x14, 0x49, 0x5D, 0x2C, 0xEB,
780780
0xD8, 0x8C, 0x90, 0x44, 0xC9, 0x56, 0x1C, 0x59, 0xE6, 0x8A, 0xF2, 0xE9, 0x6E, 0x6F, 0xEC, 0x76,

0 commit comments

Comments
 (0)