From 94152333abba703af2d7f30de793c012beebb477 Mon Sep 17 00:00:00 2001 From: Nan Liu Date: Wed, 24 Aug 2016 17:48:08 -0700 Subject: [PATCH] Change to x86_64. --- .travis.yml | 4 ++-- scripts/build.sh | 17 +++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 67cc86c..2a765c4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -59,8 +59,8 @@ deploy: api_key: secure: qgJ93IYfJUzPWlsuhvWxczl2H8yyXUsM5rJ6YrNaKUTtwy2bvXg65zEvunEPvs+VbkimlODf42BFyTcb0GqgTx8N13wk8m1K0VFGirDK0KjugQF2zAs61lV1mzkUnTWipVm4a23bPdTt5vncj2kf70RqXBQ3eK75ttnpin47R858H8rl++4JC/wd3vNPZYX2OzahlGmHrsWi1drRGvhngevMqckz2MyUBwCMxhiWFlQSAfCmcD61+zuQ+2RmHN0omJCf59SBiBv+7QaqoVgN2X5EA4HD5hu6J1HpUuMhkWViIbSGhUCqoaH3Cgj2HzWy9WFRW2B18vT+FV5NPgHDZlYwgCCBHBHzp+JImiU1SgLoQJMCwBL8KiOUul7ZjYJLZABFQ/Z/1xhZp5jcy6+CtODGm/xuxNGbo0OE8eMdEs5StVT1wD0EPNAW0c22veksOywr0fW2TITJUfAF+BThRZQF9WGo97+d/8/rSZmhfQe0nfk5L/8P/OSHQn+2b685j5V5CfVqIW7Kq35pDVnwwedyhsjDs+1udQTPjqyT5/PuBjHtB/Fc3xVlDnKrrxn5Igh0o0uCeyLzFkDyjIB2Bn9u7/vBw4QZ5lTKmTaC4TGcwrdpDYDFaxNB0WZFS59NkgitZLHrrqW4XJimvqg7dKatoN3wpzft/csdyNh5tqE= file: - - release/snap-plugin-publisher-file_darwin_amd64 - - release/snap-plugin-publisher-file_linux_amd64 + - release/snap-plugin-publisher-file_darwin_x86_64 + - release/snap-plugin-publisher-file_linux_x86_64 skip_cleanup: true on: repo: intelsdi-x/snap-plugin-publisher-file diff --git a/scripts/build.sh b/scripts/build.sh index 0bf558e..0fa0eeb 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -40,13 +40,14 @@ export CGO_ENABLED=0 # rebuild binaries: _debug "removing: ${build_dir:?}/*" rm -rf "${build_dir:?}/"* -mkdir -p "${build_dir}/linux/amd64" -mkdir -p "${build_dir}/darwin/amd64" +mkdir -p "${build_dir}/linux/x86_64" +mkdir -p "${build_dir}/darwin/x86_64" + +arch="x86_64" _info "building plugin: ${plugin_name}" -GOOS=linux -GOARCH=amd64 -"${go_build[@]}" -o "${build_dir}/${GOOS}/${GOARCH}/${plugin_name}" . || exit 1 -GOOS=darwin -GOARCH=amd64 -"${go_build[@]}" -o "${build_dir}/${GOOS}/${GOARCH}/${plugin_name}" . || exit 1 +export GOOS=linux +"${go_build[@]}" -o "${build_dir}/${GOOS}/${arch}/${plugin_name}" . || exit 1 + +export GOOS=darwin +"${go_build[@]}" -o "${build_dir}/${GOOS}/${arch}/${plugin_name}" . || exit 1