Skip to content

Commit

Permalink
run go build script from within yml2env repo directory
Browse files Browse the repository at this point in the history
  • Loading branch information
SaphMB committed Jan 20, 2023
1 parent 0abaad3 commit 1a85977
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
11 changes: 7 additions & 4 deletions ci/tasks/release/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
set -xe

export GOPATH=$PWD/gopath
export build_dir=$PWD/build

cd yml2env

echo "Building 64-bit Darwin"
GOARCH=amd64 GOOS=darwin go build -o build/yml2env_osx github.com/EngineerBetter/yml2env
GOARCH=amd64 GOOS=darwin go build -o $build_dir/yml2env_osx github.com/EngineerBetter/yml2env
echo "Building 32-bit Linux"
GOARCH=386 GOOS=linux go build -ldflags '-extldflags "-static"' -o build/yml2env_linux_i686 github.com/EngineerBetter/yml2env
GOARCH=386 GOOS=linux go build -ldflags '-extldflags "-static"' -o $build_dir/yml2env_linux_i686 github.com/EngineerBetter/yml2env
echo "Building 64-bit Linux"
GOARCH=amd64 GOOS=linux go build -ldflags '-extldflags "-static"' -o build/yml2env_linux_x86-64 github.com/EngineerBetter/yml2env
GOARCH=amd64 GOOS=linux go build -ldflags '-extldflags "-static"' -o $build_dir/yml2env_linux_x86-64 github.com/EngineerBetter/yml2env
echo "Building 32-bit Windows"
GOARCH=386 GOOS=windows go build -o build/yml2env_win32.exe github.com/EngineerBetter/yml2env
GOARCH=386 GOOS=windows go build -o $build_dir/yml2env_win32.exe github.com/EngineerBetter/yml2env
echo "Building 64-bit Windows"
GOARCH=amd64 GOOS=windows go build -o build/yml2env_winx64.exe github.com/EngineerBetter/yml2env
5 changes: 3 additions & 2 deletions ci/tasks/release/task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ platform: linux

inputs:
- name: yml2env
path: gopath/src/github.com/EngineerBetter/yml2env

run:
path: gopath/src/github.com/EngineerBetter/yml2env/ci/tasks/release/run.sh
path: yml2env/ci/tasks/release/run.sh

outputs:
- name: build

0 comments on commit 1a85977

Please sign in to comment.