Skip to content

Commit 0c36ba6

Browse files
committed
actually build package
1 parent cb93ad6 commit 0c36ba6

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

.github/workflows/rust.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ jobs:
2929
- name: Load sources
3030
run: ./d download-all
3131
- name: Run build
32-
run: cargo run --release --bin stm32-bindings-gen
32+
run: cargo run --release --bin stm32-bindings-gen -- --target=thumbv8m.main-none-eabihf
33+
- name: Run package build
34+
run: cd build/stm32-bindings && cargo build --target=thumbv8m.main-none-eabihf

d

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ REV=8382ecbcc976ab5e91070b386700dbfd1e654275
88
shift
99

1010
case "$CMD" in
11+
gen)
12+
cargo run --release stm32-bindings-gen -- --target=thumbv8m.main-none-eabihf
13+
;;
1114
download-all)
1215
rm -rf ./sources/
1316
git clone https://github.com/STMicroelectronics/STM32CubeWBA.git ./sources/ -q

d.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ param (
99
$REV = "8382ecbcc976ab5e91070b386700dbfd1e654275"
1010

1111
Switch ($CMD) {
12+
"gen" {
13+
cargo run --release stm32-bindings-gen -- --target=thumbv8m.main-none-eabihf
14+
}
1215
"download-all" {
1316
rm -r -Force ./sources/ -ErrorAction SilentlyContinue
1417
git clone https://github.com/STMicroelectronics/STM32CubeWBA.git ./sources/

stm32-bindings-gen/res/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "stm32-metapac"
2+
name = "stm32-bindings"
33
version = "18.0.0"
44
edition = "2024"
55
license = "MIT OR Apache-2.0"

stm32-bindings-gen/res/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fn main() {
66

77
println!(
88
"cargo:rustc-link-search=native={}",
9-
crate_dir.join("src/lib").to_str().unwrap()
9+
crate_dir.join("src").join("lib").to_str().unwrap()
1010
);
11-
println!("cargo:rustc-link-lib=static=wba_mac_lib");
11+
println!("cargo:rustc-link-lib=wba_mac_lib");
1212
}

0 commit comments

Comments
 (0)