File tree Expand file tree Collapse file tree 3 files changed +48
-1
lines changed Expand file tree Collapse file tree 3 files changed +48
-1
lines changed Original file line number Diff line number Diff line change
1
+ language : rust
2
+ services : docker
3
+ sudo : required
4
+
5
+ matrix :
6
+ include :
7
+ - env : TARGET=aarch64-unknown-linux-gnu
8
+ - env : TARGET=armv7-unknown-linux-gnueabihf
9
+ - env : TARGET=i686-unknown-linux-gnu
10
+ - env : TARGET=mips-unknown-linux-gnu
11
+ - env : TARGET=mips64-unknown-linux-gnuabi64
12
+ - env : TARGET=mips64el-unknown-linux-gnuabi64
13
+ - env : TARGET=mipsel-unknown-linux-gnu
14
+ - env : TARGET=powerpc-unknown-linux-gnu
15
+ - env : TARGET=powerpc64-unknown-linux-gnu
16
+ - env : TARGET=powerpc64le-unknown-linux-gnu
17
+ - env : TARGET=x86_64-unknown-linux-gnu
18
+
19
+ before_install : set -e
20
+
21
+ install :
22
+ - bash ci/install.sh
23
+
24
+ script :
25
+ - bash ci/script.sh
26
+
27
+ after_script : set +e
28
+
29
+ cache : cargo
30
+
31
+ before_cache :
32
+ - chmod -R a+r $HOME/.cargo;
Original file line number Diff line number Diff line change
1
+ set -euxo pipefail
2
+
3
+ main () {
4
+ if ! hash cross > /dev/null 2>&1 ; then
5
+ cargo install cross
6
+ fi
7
+
8
+ rustup target add x86_64-unknown-linux-musl
9
+
10
+ if [ $TARGET != x86_64-unknown-linux-gnu ]; then
11
+ rustup target add $TARGET
12
+ fi
13
+ }
14
+
15
+ main
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ set -euxo pipefail
2
2
3
3
main () {
4
4
cargo run --package test-generator --target x86_64-unknown-linux-musl
5
- if hash cargo- fmt; then
5
+ if cargo fmt --version > /dev/null 2>&1 ; then
6
6
# nicer syntax error messages (if any)
7
7
cargo fmt
8
8
fi
You can’t perform that action at this time.
0 commit comments