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:
25
25
- run : cargo build -p b1display --release
26
26
- run : cargo build -p c1minimal --release
27
27
28
- - run : |
28
+ - name : Convert to UF2 format
29
+ run : |
29
30
sudo apt-get update
30
31
sudo apt-get install -y libudev-dev
31
32
cargo install elf2uf2-rs
32
33
elf2uf2-rs target/thumbv6m-none-eabi/release/b1display b1display.uf2
33
34
elf2uf2-rs target/thumbv6m-none-eabi/release/c1minimal c1minimal.uf2
34
35
elf2uf2-rs target/thumbv6m-none-eabi/release/ledmatrix ledmatrix.uf2
35
36
36
- - name : Upload Linux tool
37
+ - name : Upload UF2 files
37
38
uses : actions/upload-artifact@v3
38
39
with :
39
- name : inputmodule_fw
40
+ name : inputmodule_fw_uf2
40
41
path : |
41
42
b1display.uf2
42
43
c1minimal.uf2
43
44
ledmatrix.uf2
44
45
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
+
45
63
linting :
46
64
name : Linting
47
65
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments