Skip to content

Commit cf0fea3

Browse files
committed
Rebase workflow file
1 parent 0d9ae25 commit cf0fea3

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ jobs:
1919
- name: Checkout
2020
uses: actions/checkout@master
2121

22+
- name: Get current date
23+
id: date
24+
run: echo "date=$(date +'%b_%d_%Y')" >> $GITHUB_OUTPUT
25+
26+
- name: Get current date
27+
id: dateNoScores
28+
run: echo "dateNoScores=$(date +'%b %d %Y')" >> $GITHUB_OUTPUT
29+
30+
- name: Extract branch name
31+
run: echo "BRANCH=${{github.ref_name}}" >> $GITHUB_ENV
32+
2233
#File_Name_v3_1.bin
2334
#File_Name_RC-Jan_26_2023.bin
2435
- name: Create file ending and compiler flags based on branch
@@ -82,20 +93,9 @@ jobs:
8293
run: arduino-cli compile --fqbn esp32:esp32:esp32 ./Firmware/RTK_Surveyor/RTK_Surveyor.ino
8394
--build-property build.partitions=partitions
8495
--build-property upload.maximum_size=3145728
85-
--build-property "compiler.cpp.extra_flags=\"-DPOINTPERFECT_TOKEN=$POINTPERFECT_TOKEN\" \"-DFIRMWARE_VERSION_MAJOR=$FIRMWARE_VERSION_MAJOR\" \"-DFIRMWARE_VERSION_MINOR=$FIRMWARE_VERSION_MINOR\"" \"-DENABLE_DEVELOPER=${{ env.ENABLE_DEVELOPER }}\""
96+
--build-property "compiler.cpp.extra_flags=\"-DPOINTPERFECT_TOKEN=$POINTPERFECT_TOKEN\" \"-DFIRMWARE_VERSION_MAJOR=$FIRMWARE_VERSION_MAJOR\" \"-DFIRMWARE_VERSION_MINOR=$FIRMWARE_VERSION_MINOR\" \"-DENABLE_DEVELOPER=${{ env.ENABLE_DEVELOPER }}\""
8697
--export-binaries
8798

88-
- name: Get current date
89-
id: date
90-
run: echo "date=$(date +'%b_%d_%Y')" >> $GITHUB_OUTPUT
91-
92-
- name: Get current date
93-
id: dateNoScores
94-
run: echo "dateNoScores=$(date +'%b %d %Y')" >> $GITHUB_OUTPUT
95-
96-
- name: Extract branch name
97-
run: echo "BRANCH=${{github.ref_name}}" >> $GITHUB_ENV
98-
9999
- name: Rename binary
100100
run: |
101101
cd Firmware/RTK_Surveyor/build/esp32.esp32.esp32/

0 commit comments

Comments
 (0)