Skip to content

Commit 57dbe78

Browse files
authored
Initial CI/CD (#2)
1 parent dc6135b commit 57dbe78

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/rust_all.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

0 commit comments

Comments
 (0)