From 70397d1469db458cc35a57304f975a0d5bf3e913 Mon Sep 17 00:00:00 2001 From: Markus Cisler Date: Tue, 4 May 2021 23:59:23 +0200 Subject: [PATCH] Bump Go version to 1.16 This allows Go to build a native binary for Apple Silicon. GoReleaser is used to build and release this project, GoReleaser v0.157.0 released on 2021-02-17 will build a fitting binary automatically as long as Go 1.16 is used. A bump of the Go version should be everything that's needed to get this working natively on Apple Silicon. --- .github/workflows/build.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cfbab55..ad8e6e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,8 +13,8 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.14 + go-version: 1.16 - name: Set up Git run: git config --global user.email "grdl@example.com" && git config --global user.name "grdl" - name: Run go test - run: CGO_ENABLED=0 GOOS=linux go test ./... -v \ No newline at end of file + run: CGO_ENABLED=0 GOOS=linux go test ./... -v diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b47c632..9439bce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,11 +14,11 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.14 + go-version: 1.16 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: version: latest args: release --rm-dist env: - GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }}