Skip to content

Commit fc8f6d7

Browse files
author
Jorge Aparicio
committed
CI: use cross again
1 parent 1e1b9b2 commit fc8f6d7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ci/script.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
set -ex
22

33
test_gen() {
4-
cargo run --target $TARGET --release -- -i $td/$svd $1 > $td/src/lib.rs
4+
target/$TARGET/release/svd2rust -i $td/$svd $1 > $td/src/lib.rs
55
echo 'extern crate volatile_register;' >> $td/src/lib.rs
6-
cargo build --manifest-path $td/Cargo.toml --target $TARGET
6+
cargo build --manifest-path $td/Cargo.toml
77
}
88

99
main() {
10-
cargo build --target $TARGET
11-
cargo build --target $TARGET --release
10+
cross build --target $TARGET
11+
cross build --target $TARGET --release
1212

1313
if [ ! -z $DISABLE_TESTS ]; then
1414
return
@@ -24,7 +24,7 @@ main() {
2424
esac
2525

2626
# test crate
27-
cargo init --name foo $td
27+
cross init --name foo $td
2828
echo 'volatile-register = "0.1.0"' >> $td/Cargo.toml
2929

3030
curl -L \

0 commit comments

Comments
 (0)