2019-01-24 16:09:42 +00:00
|
|
|
---
|
2017-05-16 06:07:07 +00:00
|
|
|
version: 2
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
machine: true
|
|
|
|
|
2019-07-28 17:47:38 +00:00
|
|
|
working_directory: ~/.go_workspace/src/github.com/rclone/rclone
|
2017-05-16 06:07:07 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Cross-compile rclone
|
|
|
|
command: |
|
2019-09-12 15:30:25 +00:00
|
|
|
docker pull billziss/xgo-cgofuse
|
2017-05-16 06:07:07 +00:00
|
|
|
go get -v github.com/karalabe/xgo
|
|
|
|
xgo \
|
2019-09-12 15:30:25 +00:00
|
|
|
-image=billziss/xgo-cgofuse \
|
|
|
|
-targets=darwin/386,darwin/amd64,linux/386,linux/amd64,windows/386,windows/amd64 \
|
2017-05-19 14:46:13 +00:00
|
|
|
-tags cmount \
|
2019-09-12 15:30:25 +00:00
|
|
|
-dest build \
|
2017-05-16 06:07:07 +00:00
|
|
|
.
|
2017-10-11 12:40:02 +00:00
|
|
|
xgo \
|
2019-09-12 15:30:25 +00:00
|
|
|
-image=billziss/xgo-cgofuse \
|
|
|
|
-targets=android/*,ios/* \
|
|
|
|
-dest build \
|
2017-10-11 12:40:02 +00:00
|
|
|
.
|
2017-05-16 06:07:07 +00:00
|
|
|
|
2019-01-15 11:46:39 +00:00
|
|
|
- run:
|
|
|
|
name: Build rclone
|
|
|
|
command: |
|
2019-09-12 15:30:25 +00:00
|
|
|
docker pull golang
|
|
|
|
docker run --rm -v "$PWD":/usr/src/rclone -w /usr/src/rclone golang go build -mod=vendor -v
|
2019-01-15 11:46:39 +00:00
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Upload artifacts
|
|
|
|
command: |
|
2019-09-12 15:30:25 +00:00
|
|
|
make circleci_upload
|
2017-05-16 06:07:07 +00:00
|
|
|
|
|
|
|
- store_artifacts:
|
2019-09-12 15:30:25 +00:00
|
|
|
path: build
|