File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Rust - all OS CI/CD
2
+ # Projects that are supported on ubuntu, windows and macos are added here
3
+
4
+ on :
5
+ push :
6
+ branches : ["main"]
7
+ pull_request :
8
+ branches : ["main"]
9
+
10
+ env :
11
+ CARGO_TERM_COLOR : always
12
+
13
+ jobs :
14
+ all_os :
15
+ strategy :
16
+ matrix :
17
+ os : [ubuntu-latest, windows-latest, macos-latest]
18
+ runs-on : ${{ matrix.os }}
19
+ steps :
20
+ - uses : actions/checkout@v3
21
+
22
+ - name : Install ARM GCC
23
+ uses : carlosperate/arm-none-eabi-gcc-action@v1
24
+ with :
25
+ release : " 11.2-2022.02"
26
+
27
+ - name : Install packages
28
+ run : |
29
+ rustup component add llvm-tools-preview
30
+ rustup target add thumbv7em-none-eabihf
31
+ cargo install cbindgen
32
+ cargo install cargo-binutils
33
+
34
+ - name : Environment info
35
+ run : |
36
+ cargo --version
37
+ rustup --version
38
+ rustc --version
39
+ rustup default
40
+ arm-none-eabi-gcc -v
41
+ arm-none-eabi-ld -v
42
+
43
+ - name : Minimal blinky
44
+ working-directory : ${{github.workspace}}/minimal_blinky
45
+ run : |
46
+ cargo build
47
+ cargo size
48
+ cargo build --release
49
+ cargo size --release
You can’t perform that action at this time.
0 commit comments