Skip to content

Commit b6c0e41

Browse files
committed
implement ci
1 parent dbc6387 commit b6c0e41

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/rust.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: ⚡ Cache
20+
uses: actions/cache@v4
21+
with:
22+
path: |
23+
~/.cargo/registry
24+
~/.cargo/git
25+
target
26+
key: ${{ runner.os }}-cargo
27+
- name: Set permissions
28+
run: chmod +x d
29+
- name: Load sources
30+
run: ./d download-all
31+
- name: Run build
32+
run: cargo run --release --bin stm32-bindings-gen

0 commit comments

Comments
 (0)