Install rustup target for musl

This commit is contained in:
Félix Saparelli 2018-08-21 16:28:42 +12:00
parent 2ac3c2ec5d
commit 3069f4bb83
5 changed files with 15 additions and 7 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
target
*.tar.gz
*.zip

View File

@ -45,12 +45,10 @@ matrix:
- rust: nightly
fast_finish: true
script:
- bash ci/script.sh
before_deploy:
- bash ci/before_deploy.sh
before_script: ci/before_script.sh
script: ci/script.sh
before_deploy: ci/before_deploy.sh
deploy:
provider: releases
api_key:

5
ci/before_deploy.sh Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
# Build script shamelessly stolen from ripgrep :)
cargo build --target $TARGET --release
@ -11,5 +13,6 @@ cp target/$TARGET/release/watchexec "$build_dir/$name/"
cp {doc/watchexec.1,LICENSE} "$build_dir/$name/"
pushd $build_dir
GZIP=-9 tar czf "$out_dir/$name.tar.gz" *
tar cvf "$out_dir/$name.tar" *
popd
gzip -f9 "$name.tar"

4
ci/before_script.sh Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
rustup target add $TARGET
cargo clean --target $TARGET --verbose

3
ci/script.sh Normal file → Executable file
View File

@ -1,3 +1,4 @@
cargo clean --target $TARGET --verbose
#!/usr/bin/env bash
cargo build --target $TARGET --verbose
cargo test --target $TARGET --verbose