Skip to content

Commit b881824

Browse files
committed
use env var for target
1 parent 869e9f6 commit b881824

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/rust.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ jobs:
3636
- name: Run package build
3737
run: |
3838
cd build/stm32-bindings
39-
cargo fix --lib -p stm32-bindings --target=thumbv8m.main-none-eabihf --allow-no-vcs
40-
cargo build --target=thumbv8m.main-none-eabihf
41-
cargo package --target=thumbv8m.main-none-eabihf
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
4243
ls target/package
4344
- name: Upload package build
4445
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)