Skip to content

Commit e8f9db4

Browse files
authored
Merge pull request #10 from xoviat/build
gen pkg
2 parents a5cbaaf + b881824 commit e8f9db4

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/rust.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,15 @@ jobs:
3434
- name: Run build
3535
run: cargo run --release --bin stm32-bindings-gen
3636
- name: Run package build
37-
run: cd build/stm32-bindings && cargo build --target=thumbv8m.main-none-eabihf
37+
run: |
38+
cd build/stm32-bindings
39+
export CARGO_BUILD_TARGET=thumbv8m.main-none-eabihf
40+
cargo fix --lib -p stm32-bindings --allow-no-vcs
41+
cargo build
42+
cargo package
43+
ls target/package
44+
- name: Upload package build
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: crate
48+
path: build/stm32-bindings/target/package/*.crate

d.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $REV = "v1.8.0"
1010

1111
Switch ($CMD) {
1212
"gen" {
13-
cargo run --release stm32-bindings-gen
13+
cargo run --release stm32-bindings-gen --target thumbv8m.main-none-eabihf
1414
}
1515
"download-all" {
1616
rm -r -Force ./sources/ -ErrorAction SilentlyContinue

0 commit comments

Comments
 (0)