From bf69a78baf1a4754946d2b30e48f8ee074112c4d Mon Sep 17 00:00:00 2001 From: onokatio Date: Wed, 25 Dec 2019 02:31:14 +0900 Subject: [PATCH] build script --- .gitignore | 2 +- crosscompile.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 crosscompile.sh diff --git a/.gitignore b/.gitignore index 7b4efdd..e3ec551 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -terraform-provider-n0stack +terraform-provider-n0stack* ### https://raw.github.com/github/gitignore/21419e391a78f2487340b3b1240b988aaf15b54f/Go.gitignore diff --git a/crosscompile.sh b/crosscompile.sh new file mode 100755 index 0000000..826914c --- /dev/null +++ b/crosscompile.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +GOARCH=amd64 + +GOOS=darwin +go build -o terraform-provider-n0stack-$GOOS-$GOARCH + +GOOS=linux +go build -o terraform-provider-n0stack-$GOOS-$GOARCH + +GOOS=windows +go build -o terraform-provider-n0stack-$GOOS-$GOARCH