From 7b2085daf6079c05314564ba9e64ff65b5c2f8fd Mon Sep 17 00:00:00 2001 From: Stephan Date: Sat, 21 May 2022 16:00:52 +0200 Subject: [PATCH] Update to go 1.18 (#29) --- .github/workflows/go-build.yaml | 7 ++++++- Dockerfile | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-build.yaml b/.github/workflows/go-build.yaml index 178c6d5..74a47c4 100644 --- a/.github/workflows/go-build.yaml +++ b/.github/workflows/go-build.yaml @@ -11,9 +11,14 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + go: [ '1.17', '1.18' ] steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: '1.17' + go-version: ${{ matrix.go }} - run: go build cmd/dht22-exporter/dht22-exporter.go + env: + CGO_ENABLED: "0" diff --git a/Dockerfile b/Dockerfile index c16e76e..21e4c07 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG GO_VERSION=1.17.8 +ARG GO_VERSION=1.18.2 FROM --platform=$BUILDPLATFORM golang:${GO_VERSION} AS builder ARG TARGETARCH ARG TARGETOS