-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release section and musl targets in travis configuration
- Loading branch information
Showing
5 changed files
with
54 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "lowcharts" | ||
version = "0.1.0" | ||
version = "0.2.0" | ||
authors = ["JuanLeon Lahoz <[email protected]>"] | ||
edition = "2018" | ||
description = "Tool to draw low-resolution graphs in terminal" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
function pack { | ||
local tempdir pwd package_name | ||
|
||
tempdir=$(mktemp -d 2>/dev/null || mktemp -d -t tmp) | ||
pwd=$(pwd) | ||
package_name="$PROJECT_NAME-$TRAVIS_TAG-$TARGET" | ||
echo "fixme pwd is $pwd" | ||
echo "fixme package_name is $package_name" | ||
|
||
mkdir -p "$tempdir/$package_name" | ||
|
||
cp "target/$TARGET/release/$PROJECT_NAME" "$tempdir/$package_name/" | ||
strip "$tempdir/$package_name/$PROJECT_NAME" | ||
|
||
pushd "$tempdir" | ||
tar cvzf "$pwd/$package_name.tar.gz" "$package_name"/* | ||
popd | ||
rm -r "$tempdir" | ||
} | ||
|
||
cargo build --target "$TARGET" --release --verbose | ||
pack | ||
ls -l # fixme |