Bump go version to 1.16

This commit is contained in:
Michael Eischer 2021-03-04 23:24:26 +01:00
parent 64a9272c9a
commit 781378a65e
2 changed files with 11 additions and 6 deletions

View file

@ -15,21 +15,26 @@ jobs:
# list of jobs to run:
include:
- job_name: Windows
go: 1.15.x
go: 1.16.x
os: windows-latest
- job_name: macOS
go: 1.15.x
go: 1.16.x
os: macOS-latest
test_fuse: false
- job_name: Linux
go: 1.15.x
go: 1.16.x
os: ubuntu-latest
test_cloud_backends: true
test_fuse: true
check_changelog: true
- job_name: Linux
go: 1.15.x
os: ubuntu-latest
test_fuse: true
- job_name: Linux
go: 1.14.x
os: ubuntu-latest
@ -201,7 +206,7 @@ jobs:
solaris/amd64"
env:
go: 1.15.x
go: 1.16.x
GOPROXY: https://proxy.golang.org
runs-on: ubuntu-latest
@ -234,7 +239,7 @@ jobs:
name: lint
runs-on: ubuntu-latest
env:
go: 1.15.x
go: 1.16.x
steps:
- name: Set up Go ${{ env.go }}
uses: actions/setup-go@v2

View file

@ -5,7 +5,7 @@ set -e
echo "Build binary using golang docker image"
docker run --rm -ti \
-v "`pwd`":/go/src/github.com/restic/restic \
-w /go/src/github.com/restic/restic golang:1.15-alpine go run build.go
-w /go/src/github.com/restic/restic golang:1.16-alpine go run build.go
echo "Build docker image restic/restic:latest"
docker build --rm -t restic/restic:latest -f docker/Dockerfile .