-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
61 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,5 @@ segdsp.prof | |
*.float32 | ||
*.cfile | ||
*.bytes | ||
out | ||
bins |
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,26 @@ | ||
#!/bin/bash | ||
|
||
TAG=`git describe --exact-match --tags HEAD` | ||
|
||
if [ $? -eq 0 ]; | ||
then | ||
echo "Releasing for tag ${TAG}" | ||
echo "Downloading deps" | ||
go get -v | ||
echo "Dowloading gox for multi-arch" | ||
go get github.com/mitchellh/gox | ||
mkdir out | ||
mkdir bins | ||
echo "Multi-arch build" | ||
gox -output "out/{{.OS}}-{{.Arch}}/{{.Dir}}" -arch="arm arm64 386 amd64" -os="windows linux" | ||
cd out | ||
for i in * | ||
do | ||
echo "Zipping segdsp-${i}.zip" | ||
zip ../bins/segdsp-$i.zip $i/* | ||
done | ||
cd .. | ||
ls -la bins | ||
else | ||
echo "No tags for current commit. Skipping releases." | ||
fi |