mirror of https://github.com/rclone/rclone.git
build: update to use go1.14 for the build
This commit is contained in:
parent
abb9f89f65
commit
3855c003ce
|
@ -19,12 +19,12 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
job_name: ['linux', 'mac', 'windows_amd64', 'windows_386', 'other_os', 'modules_race', 'go1.10', 'go1.11', 'go1.12']
|
job_name: ['linux', 'mac', 'windows_amd64', 'windows_386', 'other_os', 'modules_race', 'go1.11', 'go1.12', 'go1.13']
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- job_name: linux
|
- job_name: linux
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
go: '1.13.x'
|
go: '1.14.x'
|
||||||
modules: 'off'
|
modules: 'off'
|
||||||
gotags: cmount
|
gotags: cmount
|
||||||
build_flags: '-include "^linux/"'
|
build_flags: '-include "^linux/"'
|
||||||
|
@ -34,7 +34,7 @@ jobs:
|
||||||
|
|
||||||
- job_name: mac
|
- job_name: mac
|
||||||
os: macOS-latest
|
os: macOS-latest
|
||||||
go: '1.13.x'
|
go: '1.14.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'
|
||||||
|
@ -44,7 +44,7 @@ jobs:
|
||||||
|
|
||||||
- job_name: windows_amd64
|
- job_name: windows_amd64
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
go: '1.13.x'
|
go: '1.14.x'
|
||||||
modules: 'off'
|
modules: 'off'
|
||||||
gotags: cmount
|
gotags: cmount
|
||||||
build_flags: '-include "^windows/amd64" -cgo'
|
build_flags: '-include "^windows/amd64" -cgo'
|
||||||
|
@ -54,7 +54,7 @@ jobs:
|
||||||
|
|
||||||
- job_name: windows_386
|
- job_name: windows_386
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
go: '1.13.x'
|
go: '1.14.x'
|
||||||
modules: 'off'
|
modules: 'off'
|
||||||
gotags: cmount
|
gotags: cmount
|
||||||
goarch: '386'
|
goarch: '386'
|
||||||
|
@ -65,7 +65,7 @@ jobs:
|
||||||
|
|
||||||
- job_name: other_os
|
- job_name: other_os
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
go: '1.13.x'
|
go: '1.14.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
|
||||||
|
@ -73,17 +73,11 @@ jobs:
|
||||||
|
|
||||||
- job_name: modules_race
|
- job_name: modules_race
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
go: '1.13.x'
|
go: '1.14.x'
|
||||||
modules: 'on'
|
modules: 'on'
|
||||||
quicktest: true
|
quicktest: true
|
||||||
racequicktest: true
|
racequicktest: true
|
||||||
|
|
||||||
- job_name: go1.10
|
|
||||||
os: ubuntu-latest
|
|
||||||
go: '1.10.x'
|
|
||||||
modules: 'off'
|
|
||||||
quicktest: true
|
|
||||||
|
|
||||||
- job_name: go1.11
|
- job_name: go1.11
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
go: '1.11.x'
|
go: '1.11.x'
|
||||||
|
@ -96,6 +90,12 @@ jobs:
|
||||||
modules: 'off'
|
modules: 'off'
|
||||||
quicktest: true
|
quicktest: true
|
||||||
|
|
||||||
|
- job_name: go1.13
|
||||||
|
os: ubuntu-latest
|
||||||
|
go: '1.13.x'
|
||||||
|
modules: 'off'
|
||||||
|
quicktest: true
|
||||||
|
|
||||||
name: ${{ matrix.job_name }}
|
name: ${{ matrix.job_name }}
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//+build !go1.10
|
//+build !go1.11
|
||||||
|
|
||||||
package fs
|
package fs
|
||||||
|
|
||||||
// Upgrade to Go version 1.10 to compile rclone - latest stable go
|
// Upgrade to Go version 1.11 to compile rclone - latest stable go
|
||||||
// compiler recommended.
|
// compiler recommended.
|
||||||
func init() { Go_version_1_10_required_for_compilation() }
|
func init() { Go_version_1_11_required_for_compilation() }
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
// Clean the left over test files
|
// Clean the left over test files
|
||||||
|
|
||||||
// +build go1.11
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
// Config handling
|
// Config handling
|
||||||
|
|
||||||
// +build go1.11
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// +build go1.11
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
// Run a test
|
// Run a test
|
||||||
|
|
||||||
// +build go1.11
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// +build go1.11
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// +build go1.11
|
|
||||||
|
|
||||||
// Run tests for all the remotes. Run this with package names which
|
// Run tests for all the remotes. Run this with package names which
|
||||||
// need integration testing.
|
// need integration testing.
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// +build go1.10
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
Loading…
Reference in New Issue