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