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 @@ -22,23 +22,41 @@ jobs:
22
22
- run : cargo build -p b1display --release
23
23
- run : cargo build -p c1minimal --release
24
24
25
- - run : |
25
+ - name : Convert to UF2 format
26
+ run : |
26
27
sudo apt-get update
27
28
sudo apt-get install -y libudev-dev
28
29
cargo install elf2uf2-rs
29
30
elf2uf2-rs target/thumbv6m-none-eabi/release/b1display b1display.uf2
30
31
elf2uf2-rs target/thumbv6m-none-eabi/release/c1minimal c1minimal.uf2
31
32
elf2uf2-rs target/thumbv6m-none-eabi/release/ledmatrix ledmatrix.uf2
32
33
33
- - name : Upload Linux tool
34
+ - name : Upload UF2 files
34
35
uses : actions/upload-artifact@v3
35
36
with :
36
- name : inputmodule_fw
37
+ name : inputmodule_fw_uf2
37
38
path : |
38
39
b1display.uf2
39
40
c1minimal.uf2
40
41
ledmatrix.uf2
41
42
43
+ - name : Convert to bin format
44
+ run : |
45
+ sudo apt-get update
46
+ sudo apt-get install -y llvm
47
+ llvm-objcopy -O binary target/thumbv6m-none-eabi/release/b1display b1display.bin
48
+ llvm-objcopy -O binary target/thumbv6m-none-eabi/release/c1minimal c1minimal.bin
49
+ llvm-objcopy -O binary target/thumbv6m-none-eabi/release/ledmatrix ledmatrix.bin
50
+
51
+ - name : Upload bin files
52
+ uses : actions/upload-artifact@v3
53
+ with :
54
+ name : inputmodule_fw_bin
55
+ path : |
56
+ b1display.bin
57
+ c1minimal.bin
58
+ ledmatrix.bin
59
+
42
60
linting :
43
61
name : Linting
44
62
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments