mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 11:21:10 +08:00
build: replace Circle CI build and make GitHub actions the default CI
This commit is contained in:
parent
ec9914205f
commit
8681ef36d6
64
.github/workflows/build.yml
vendored
64
.github/workflows/build.yml
vendored
|
@ -25,7 +25,7 @@ jobs:
|
||||||
- job_name: linux
|
- job_name: linux
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
go: '1.13.x'
|
go: '1.13.x'
|
||||||
modules: off
|
modules: 'off'
|
||||||
gotags: cmount
|
gotags: cmount
|
||||||
build_flags: '-include "^linux/"'
|
build_flags: '-include "^linux/"'
|
||||||
check: true
|
check: true
|
||||||
|
@ -35,7 +35,7 @@ jobs:
|
||||||
- job_name: mac
|
- job_name: mac
|
||||||
os: macOS-latest
|
os: macOS-latest
|
||||||
go: '1.13.x'
|
go: '1.13.x'
|
||||||
modules: off
|
modules: 'off'
|
||||||
gotags: '' # cmount doesn't work on osx travis for some reason
|
gotags: '' # cmount doesn't work on osx travis for some reason
|
||||||
build_flags: '-include "^darwin/amd64" -cgo'
|
build_flags: '-include "^darwin/amd64" -cgo'
|
||||||
quicktest: true
|
quicktest: true
|
||||||
|
@ -45,7 +45,7 @@ jobs:
|
||||||
- job_name: windows_amd64
|
- job_name: windows_amd64
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
go: '1.13.x'
|
go: '1.13.x'
|
||||||
modules: off
|
modules: 'off'
|
||||||
gotags: cmount
|
gotags: cmount
|
||||||
build_flags: '-include "^windows/amd64" -cgo'
|
build_flags: '-include "^windows/amd64" -cgo'
|
||||||
quicktest: true
|
quicktest: true
|
||||||
|
@ -55,7 +55,7 @@ jobs:
|
||||||
- job_name: windows_386
|
- job_name: windows_386
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
go: '1.13.x'
|
go: '1.13.x'
|
||||||
modules: off
|
modules: 'off'
|
||||||
gotags: cmount
|
gotags: cmount
|
||||||
goarch: '386'
|
goarch: '386'
|
||||||
cgo: '1'
|
cgo: '1'
|
||||||
|
@ -66,7 +66,7 @@ jobs:
|
||||||
- job_name: other_os
|
- job_name: other_os
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
go: '1.13.x'
|
go: '1.13.x'
|
||||||
modules: off
|
modules: 'off'
|
||||||
build_flags: '-exclude "^(windows/|darwin/amd64|linux/)"'
|
build_flags: '-exclude "^(windows/|darwin/amd64|linux/)"'
|
||||||
compile_all: true
|
compile_all: true
|
||||||
deploy: true
|
deploy: true
|
||||||
|
@ -74,26 +74,26 @@ jobs:
|
||||||
- job_name: modules_race
|
- job_name: modules_race
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
go: '1.13.x'
|
go: '1.13.x'
|
||||||
modules: on
|
modules: 'on'
|
||||||
quicktest: true
|
quicktest: true
|
||||||
racequicktest: true
|
racequicktest: true
|
||||||
|
|
||||||
- job_name: go1.10
|
- job_name: go1.10
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
go: '1.10.x'
|
go: '1.10.x'
|
||||||
modules: off
|
modules: 'off'
|
||||||
quicktest: true
|
quicktest: true
|
||||||
|
|
||||||
- job_name: go1.11
|
- job_name: go1.11
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
go: '1.11.x'
|
go: '1.11.x'
|
||||||
modules: off
|
modules: 'off'
|
||||||
quicktest: true
|
quicktest: true
|
||||||
|
|
||||||
- job_name: go1.12
|
- job_name: go1.12
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
go: '1.12.x'
|
go: '1.12.x'
|
||||||
modules: off
|
modules: 'off'
|
||||||
quicktest: true
|
quicktest: true
|
||||||
|
|
||||||
name: ${{ matrix.job_name }}
|
name: ${{ matrix.job_name }}
|
||||||
|
@ -201,6 +201,50 @@ jobs:
|
||||||
make travis_beta
|
make travis_beta
|
||||||
env:
|
env:
|
||||||
RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }}
|
RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }}
|
||||||
BETA_SUBDIR: 'github_actions' # FIXME remove when removing travis/appveyor
|
|
||||||
# working-directory: '$(modulePath)'
|
# working-directory: '$(modulePath)'
|
||||||
if: matrix.deploy && github.head_ref == ''
|
if: matrix.deploy && github.head_ref == ''
|
||||||
|
|
||||||
|
xgo:
|
||||||
|
timeout-minutes: 60
|
||||||
|
name: "xgo cross compile"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
path: ./src/github.com/${{ github.repository }}
|
||||||
|
|
||||||
|
- name: Set environment variables
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo '::set-env name=GOPATH::${{ runner.workspace }}'
|
||||||
|
echo '::add-path::${{ runner.workspace }}/bin'
|
||||||
|
|
||||||
|
- name: Cross-compile rclone
|
||||||
|
run: |
|
||||||
|
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 \
|
||||||
|
.
|
||||||
|
|
||||||
|
- name: Build rclone
|
||||||
|
run: |
|
||||||
|
docker pull golang
|
||||||
|
docker run --rm -v "$PWD":/usr/src/rclone -w /usr/src/rclone golang go build -mod=vendor -v
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
run: |
|
||||||
|
make circleci_upload
|
||||||
|
env:
|
||||||
|
RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user