mirror of
https://github.com/rclone/rclone
synced 2025-01-04 05:06:24 +01:00
build: fix circleci build to use billziss/xgo-cgofuse container
Use built rclone to do upload
This commit is contained in:
parent
934440a9df
commit
48e23d8c85
@ -14,37 +14,30 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Cross-compile rclone
|
name: Cross-compile rclone
|
||||||
command: |
|
command: |
|
||||||
docker pull rclone/xgo-cgofuse
|
docker pull billziss/xgo-cgofuse
|
||||||
go get -v github.com/karalabe/xgo
|
go get -v github.com/karalabe/xgo
|
||||||
xgo \
|
xgo \
|
||||||
--image=rclone/xgo-cgofuse \
|
-image=billziss/xgo-cgofuse \
|
||||||
--targets=darwin/386,darwin/amd64,linux/386,linux/amd64,windows/386,windows/amd64 \
|
-targets=darwin/386,darwin/amd64,linux/386,linux/amd64,windows/386,windows/amd64 \
|
||||||
-tags cmount \
|
-tags cmount \
|
||||||
|
-dest build \
|
||||||
.
|
.
|
||||||
xgo \
|
xgo \
|
||||||
--targets=android/*,ios/* \
|
-image=billziss/xgo-cgofuse \
|
||||||
|
-targets=android/*,ios/* \
|
||||||
|
-dest build \
|
||||||
.
|
.
|
||||||
|
|
||||||
- run:
|
|
||||||
name: Prepare artifacts
|
|
||||||
command: |
|
|
||||||
mkdir -p /tmp/rclone.dist
|
|
||||||
cp -R rclone-* /tmp/rclone.dist
|
|
||||||
mkdir build
|
|
||||||
cp -R rclone-* build/
|
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Build rclone
|
name: Build rclone
|
||||||
command: |
|
command: |
|
||||||
go version
|
docker pull golang
|
||||||
go build
|
docker run --rm -v "$PWD":/usr/src/rclone -w /usr/src/rclone golang go build -mod=vendor -v
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Upload artifacts
|
name: Upload artifacts
|
||||||
command: |
|
command: |
|
||||||
if [[ $CIRCLE_PULL_REQUEST != "" ]]; then
|
make circleci_upload
|
||||||
make circleci_upload
|
|
||||||
fi
|
|
||||||
|
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: /tmp/rclone.dist
|
path: build
|
||||||
|
Loading…
Reference in New Issue
Block a user