Skip to content

Commit ec024c7

Browse files
committed
Add e310x.svd to CI.
1 parent 6112ab8 commit ec024c7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ci/script.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ main() {
3939
echo 'cortex-m-rt = "0.3.0"' >> $td/Cargo.toml
4040
echo 'vcell = "0.1.0"' >> $td/Cargo.toml
4141
echo 'msp430 = "0.1.0"' >> $td/Cargo.toml
42+
echo 'riscv = "0.1.4"' >> $td/Cargo.toml
43+
echo 'riscv-rt = "0.1.3"' >> $td/Cargo.toml
4244
echo '[profile.dev]' >> $td/Cargo.toml
4345
echo 'incremental = false' >> $td/Cargo.toml
4446

@@ -391,6 +393,9 @@ main() {
391393
cd $td &&
392394
curl -LO \
393395
https://github.com/pftbest/msp430g2553/raw/v0.1.0/msp430g2553.svd
396+
cd $td &&
397+
curl -LO \
398+
https://raw.githubusercontent.com/riscv-rust/e310x/master/e310x.svd
394399
)
395400

396401
target/$TARGET/release/svd2rust --target msp430 -i $td/msp430g2553.svd | \
@@ -402,6 +407,11 @@ main() {
402407
( rustfmt 2>/dev/null > $td/src/lib.rs || true )
403408

404409
cargo check --manifest-path $td/Cargo.toml
410+
411+
target/$TARGET/release/svd2rust --target riscv -i $td/e310x.svd | \
412+
( rustfmt 2>/dev/null > $td/src/lib.rs || true )
413+
414+
cargo check --manifest-path $td/Cargo.toml
405415
;;
406416

407417
Nordic)

0 commit comments

Comments
 (0)