diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 14b9313..5643d67 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 \ No newline at end of file diff --git a/d.ps1 b/d.ps1 index 9046c1e..2638592 100644 --- a/d.ps1 +++ b/d.ps1 @@ -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