Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #14 from nanliu/x86
Browse files Browse the repository at this point in the history
Change to x86_64.
  • Loading branch information
nanliu authored Aug 25, 2016
2 parents 3db5568 + 9415233 commit 9968271
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 9 additions & 8 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9968271

Please sign in to comment.