mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 17:57:44 +08:00
48e23d8c85
Use built rclone to do upload
44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
---
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
machine: true
|
|
|
|
working_directory: ~/.go_workspace/src/github.com/rclone/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 \
|
|
-tags cmount \
|
|
-dest build \
|
|
.
|
|
xgo \
|
|
-image=billziss/xgo-cgofuse \
|
|
-targets=android/*,ios/* \
|
|
-dest build \
|
|
.
|
|
|
|
- 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
|
|
|
|
- store_artifacts:
|
|
path: build
|