2017-05-16 14:07:07 +08:00
|
|
|
version: 2
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
machine: true
|
|
|
|
|
|
|
|
working_directory: ~/.go_workspace/src/github.com/ncw/rclone
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Cross-compile rclone
|
|
|
|
command: |
|
|
|
|
docker pull billziss/xgo-cgofuse
|
|
|
|
go get -v github.com/karalabe/xgo
|
|
|
|
xgo \
|
|
|
|
--image=billziss/xgo-cgofuse \
|
|
|
|
--targets=darwin/386,darwin/amd64,linux/386,linux/amd64,windows/386,windows/amd64 \
|
2017-05-19 22:46:13 +08:00
|
|
|
-tags cmount \
|
2017-05-16 14:07:07 +08:00
|
|
|
.
|
2017-10-11 20:40:02 +08:00
|
|
|
xgo \
|
|
|
|
--targets=android/*,ios/* \
|
|
|
|
.
|
2017-05-16 14:07:07 +08:00
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Prepare artifacts
|
|
|
|
command: |
|
|
|
|
mkdir -p /tmp/rclone.dist
|
|
|
|
cp -R rclone-* /tmp/rclone.dist
|
|
|
|
|
|
|
|
- store_artifacts:
|
|
|
|
path: /tmp/rclone.dist
|