rclone/.circleci/config.yml

44 lines
1.0 KiB
YAML
Raw Normal View History

---
2017-05-16 08:07:07 +02:00
version: 2
jobs:
build:
machine: true
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: |
docker pull billziss/xgo-cgofuse
2017-05-16 08:07:07 +02:00
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 \
-tags cmount \
-dest build \
2017-05-16 08:07:07 +02:00
.
2017-10-11 14:40:02 +02:00
xgo \
-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
- run:
name: Build rclone
command: |
docker pull golang
docker run --rm -v "$PWD":/usr/src/rclone -w /usr/src/rclone golang go build -mod=vendor -v
- run:
name: Upload artifacts
command: |
make circleci_upload
2017-05-16 08:07:07 +02:00
- store_artifacts:
path: build