"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
build: actions update, cache, go1.15-rc1 build
Nick Craig-Wood4f9a80e2d316
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 73314305b..d53d2f23d 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -19,23 +19,22 @@ jobs:strategy:fail-fast: falsematrix:- job_name: ['linux', 'mac', 'windows_amd64', 'windows_386', 'other_os', 'race', 'go1.11', 'go1.12', 'go1.13']+ job_name: ['linux', 'mac', 'windows_amd64', 'windows_386', 'other_os', 'go1.11', 'go1.12', 'go1.13', 'go1.15']include:- job_name: linuxos: ubuntu-latestgo: '1.14.x'- modules: 'on'gotags: cmountbuild_flags: '-include "^linux/"'check: truequicktest: true+ racequicktest: truedeploy: true- job_name: macos: macOS-latestgo: '1.14.x'- modules: 'on'gotags: 'cmount'build_flags: '-include "^darwin/amd64" -cgo'quicktest: true@@ -45,7 +44,6 @@ jobs:- job_name: windows_amd64os: windows-latestgo: '1.14.x'- modules: 'on'gotags: cmountbuild_flags: '-include "^windows/amd64" -cgo'quicktest: true@@ -55,7 +53,6 @@ jobs:- job_name: windows_386os: windows-latestgo: '1.14.x'- modules: 'on'gotags: cmountgoarch: '386'cgo: '1'@@ -66,58 +63,50 @@ jobs:- job_name: other_osos: ubuntu-latestgo: '1.14.x'- modules: 'on'build_flags: '-exclude "^(windows/|darwin/amd64|linux/)"'compile_all: truedeploy: true- - job_name: race- os: ubuntu-latest- go: '1.14.x'- modules: 'on'- quicktest: true- racequicktest: true-- job_name: go1.11os: ubuntu-latestgo: '1.11.x'- modules: 'on'quicktest: true- job_name: go1.12os: ubuntu-latestgo: '1.12.x'- modules: 'on'quicktest: true- job_name: go1.13os: ubuntu-latestgo: '1.13.x'- modules: 'on'quicktest: true+ - job_name: go1.15+ os: ubuntu-latest+ go: '1.15.0-rc1'+ quicktest: true+ racequicktest: true+name: ${{ matrix.job_name }}runs-on: ${{ matrix.os }}steps:- name: Checkout- uses: actions/checkout@v1+ uses: actions/checkout@v2with:- # Checkout into a fixed path to avoid import path problems on go < 1.11- path: ./src/github.com/rclone/rclone+ fetch-depth: 0- name: Install Go- uses: actions/setup-go@v1+ uses: actions/setup-go@v2with:+ stable: 'false'go-version: ${{ matrix.go }}- name: Set environment variablesshell: bashrun: |- echo '::set-env name=GOPATH::${{ runner.workspace }}'- echo '::add-path::${{ runner.workspace }}/bin'- echo '::set-env name=GO111MODULE::${{ matrix.modules }}'echo '::set-env name=GOTAGS::${{ matrix.gotags }}'echo '::set-env name=BUILD_FLAGS::${{ matrix.build_flags }}'if [[ "${{ matrix.goarch }}" != "" ]]; then echo '::set-env name=GOARCH::${{ matrix.goarch }}' ; fi@@ -167,10 +156,22 @@ jobs:printf "\n\nSystem environment:\n\n"env- - name: Run tests+ - name: Go module cache+ uses: actions/cache@v2+ with:+ path: ~/go/pkg/mod+ key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}+ restore-keys: |+ ${{ runner.os }}-go-++ - name: Build rcloneshell: bashrun: |make++ - name: Run tests+ shell: bash+ run: |make quicktestif: matrix.quicktest@@ -242,9 +243,9 @@ jobs:.- name: Build rclone+ shell: bashrun: |- docker pull golang- docker run --rm -v "$PWD":/usr/src/rclone -w /usr/src/rclone golang go build -mod=mod -v+ make- name: Upload artifactsrun: |diff --git a/Makefile b/Makefileindex cbe442426..c150fadc3 100644--- a/Makefile+++ b/Makefile@@ -27,7 +27,6 @@ ifndef RELEASE_TAGTAG := $(TAG)-betaendifGO_VERSION := $(shell go version)-GO_FILES := $(shell go list ./... )ifdef BETA_SUBDIRBETA_SUBDIR := /$(BETA_SUBDIR)endif@@ -75,10 +74,10 @@ test: rclone test_all# Quick testquicktest:- RCLONE_CONFIG="/notfound" go test $(BUILDTAGS) $(GO_FILES)+ RCLONE_CONFIG="/notfound" go test $(BUILDTAGS) ./...racequicktest:- RCLONE_CONFIG="/notfound" go test $(BUILDTAGS) -cpu=2 -race $(GO_FILES)+ RCLONE_CONFIG="/notfound" go test $(BUILDTAGS) -cpu=2 -race ./...# Do source code quality checkscheck: rclone