Skip to content

Commit c21a088

Browse files
committed
travis: use local stm32-rs and fail stable/beta
This matches the currently targeted dependencies/rust versions. It should be removed once #5 and #6 are resolved.
1 parent 95d88b8 commit c21a088

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/force-pac-master.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
git clone https://github.com/stm32-rs/stm32-rs
6+
cd stm32-rs
7+
cargo install svd2rust
8+
rustup component add rustfmt
9+
pip install --user pyyaml
10+
cd svd
11+
./extract.sh
12+
cd ..
13+
make patch
14+
make -j$(nproc) svd2rust
15+
cd ..
16+
17+
sed -i 's|/your/path/here/||' Cargo.toml

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ branches:
1515

1616
before_script:
1717
- rustup target add thumbv7em-none-eabihf
18+
- ./github/force-pac-master.sh
1819

1920
env:
2021
- MCU=stm32h742
@@ -24,7 +25,8 @@ env:
2425

2526
matrix:
2627
allow_failures:
27-
- rust: nightly
28+
- rust: stable
29+
- rust: beta
2830
fast_finish: true
2931

3032
script:

0 commit comments

Comments
 (0)