Skip to content

Commit ea67a11

Browse files
committed
Fix firmware copy bug
1 parent b2d5f4c commit ea67a11

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ jobs:
106106
unzip *.atpack -d ./DFP
107107
- name: build-firmware
108108
run: |
109-
mkdir temp
109+
mkdir -p temp
110+
rm -rf ./temp/*
110111
111112
libraries=""
112113
@@ -167,7 +168,8 @@ jobs:
167168
unzip *.atpack -d ./DFP
168169
- name: build-firmware
169170
run: |
170-
mkdir temp
171+
mkdir -p temp
172+
rm -rf ./temp/*
171173
172174
libraries=""
173175
@@ -191,8 +193,8 @@ jobs:
191193
./avr8-gnu-toolchain-linux_x86_64/bin/avr-objcopy -j .text -j .data -O ihex ./temp/main.elf ${{ env.OutputFolder }}/${{ env.FirmwareName }}_t1606.hex
192194
./avr8-gnu-toolchain-linux_x86_64/bin/avr-objcopy -j .eeprom --change-section-lma .eeprom=0 -O ihex ./temp/main.elf ${{ env.OutputFolder }}/${{ env.FirmwareName }}_t1606.eep
193195
194-
tar -czvf build.tar.gz ${{ env.OutputFolder }}
195-
zip -r build.zip ${{ env.OutputFolder }}
196+
tar -czvf test-build.tar.gz ${{ env.OutputFolder }}
197+
zip -r test-build.zip ${{ env.OutputFolder }}
196198
197199
- name: upload-test-firmware
198200
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)