Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,15 @@ jobs:
- name: Run build
run: cargo run --release --bin stm32-bindings-gen
- name: Run package build
run: cd build/stm32-bindings && cargo build --target=thumbv8m.main-none-eabihf
run: |
cd build/stm32-bindings
export CARGO_BUILD_TARGET=thumbv8m.main-none-eabihf
cargo fix --lib -p stm32-bindings --allow-no-vcs
cargo build
cargo package
ls target/package
- name: Upload package build
uses: actions/upload-artifact@v4
with:
name: crate
path: build/stm32-bindings/target/package/*.crate
2 changes: 1 addition & 1 deletion d.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $REV = "v1.8.0"

Switch ($CMD) {
"gen" {
cargo run --release stm32-bindings-gen
cargo run --release stm32-bindings-gen --target thumbv8m.main-none-eabihf
}
"download-all" {
rm -r -Force ./sources/ -ErrorAction SilentlyContinue
Expand Down