File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed
Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -25,23 +25,41 @@ jobs:
2525 - run : cargo build -p b1display --release
2626 - run : cargo build -p c1minimal --release
2727
28- - run : |
28+ - name : Convert to UF2 format
29+ run : |
2930 sudo apt-get update
3031 sudo apt-get install -y libudev-dev
3132 cargo install elf2uf2-rs
3233 elf2uf2-rs target/thumbv6m-none-eabi/release/b1display b1display.uf2
3334 elf2uf2-rs target/thumbv6m-none-eabi/release/c1minimal c1minimal.uf2
3435 elf2uf2-rs target/thumbv6m-none-eabi/release/ledmatrix ledmatrix.uf2
3536
36- - name : Upload Linux tool
37+ - name : Upload UF2 files
3738 uses : actions/upload-artifact@v3
3839 with :
39- name : inputmodule_fw
40+ name : inputmodule_fw_uf2
4041 path : |
4142 b1display.uf2
4243 c1minimal.uf2
4344 ledmatrix.uf2
4445
46+ - name : Convert to bin format
47+ run : |
48+ sudo apt-get update
49+ sudo apt-get install -y llvm
50+ llvm-objcopy -O binary target/thumbv6m-none-eabi/release/b1display b1display.bin
51+ llvm-objcopy -O binary target/thumbv6m-none-eabi/release/c1minimal c1minimal.bin
52+ llvm-objcopy -O binary target/thumbv6m-none-eabi/release/ledmatrix ledmatrix.bin
53+
54+ - name : Upload bin files
55+ uses : actions/upload-artifact@v3
56+ with :
57+ name : inputmodule_fw_bin
58+ path : |
59+ b1display.bin
60+ c1minimal.bin
61+ ledmatrix.bin
62+
4563 linting :
4664 name : Linting
4765 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments