diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..f8016ebc983a919ac20ab34980ac3f5d1fd9e275 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/bin +/zigmod* diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..5429daea151ba04475a1b4a7ab6daeaa71dc0906 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Meghan Denny + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/build_all.sh b/build_all.sh new file mode 100644 index 0000000000000000000000000000000000000000..11302ce28276a7f56a8e675ba522a3fd813b5167 --- /dev/null +++ b/build_all.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +# set -e + +build_template() { + export CGO_ENABLED=0 + export GOOS=$1 + export GOARCH=$2 + export GOARM=7 + ext=$3 + date=$(date +'%Y.%m.%d') + version=${CIRCLE_BUILD_NUM-$date} + tag=v$version-$(git log --format=%h -1) + echo $tag-$GOOS-$GOARCH + go build -ldflags="-s -w -X main.Version=$tag" -o ./bin/zigmod-$tag-$GOOS-$GOARCH$ext +} + +# go tool dist list | grep amd64 +# build_template android amd64 +build_template darwin amd64 +build_template dragonfly amd64 +build_template freebsd amd64 +build_template illumos amd64 +build_template linux amd64 +build_template netbsd amd64 +build_template openbsd amd64 +build_template plan9 amd64 +build_template solaris amd64 +build_template windows amd64 .exe diff --git a/main.go b/main.go new file mode 100644 index 0000000000000000000000000000000000000000..7eafea024b1762beea9c5a3e8cdac8b4b01bdc67 --- /dev/null +++ b/main.go @@ -0,0 +1,4 @@ + +func assert(x bool, msg string) { + util.DieOnError(util.Assert(x, msg)) +}