Skip to content

Commit 22abc4c

Browse files
committed
Update non-release-build.yml
1 parent 79c70b0 commit 22abc4c

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
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

0 commit comments

Comments
 (0)