Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 6652314

Browse files
committed
add CI
1 parent a043c38 commit 6652314

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
language: rust
2+
3+
matrix:
4+
include:
5+
- env: TARGET=aarch64-unknown-linux-gnu
6+
- env: TARGET=armv7-unknown-linux-gnueabihf
7+
- env: TARGET=i686-unknown-linux-gnu
8+
- env: TARGET=mips-unknown-linux-gnu
9+
- env: TARGET=mips64-unknown-linux-gnuabi64
10+
- env: TARGET=mips64el-unknown-linux-gnuabi64
11+
- env: TARGET=mipsel-unknown-linux-gnu
12+
- env: TARGET=powerpc-unknown-linux-gnu
13+
- env: TARGET=powerpc64-unknown-linux-gnu
14+
- env: TARGET=powerpc64le-unknown-linux-gnu
15+
- env: TARGET=x86_64-unknown-linux-gnu
16+
17+
before_install: set -e
18+
19+
install:
20+
- bash ci/install.sh
21+
22+
script:
23+
- bash ci/script.sh
24+
25+
after_script: set +e
26+
27+
cache: cargo
28+
29+
before_cache:
30+
- chmod -R a+r $HOME/.cargo;

ci/install.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

0 commit comments

Comments
 (0)