From 30a4f6f4c549dcfff36825f448d979e7bcfe256a Mon Sep 17 00:00:00 2001 From: "K@zuki" <2923219+corrupt952@users.noreply.github.com> Date: Sun, 7 Nov 2021 03:10:11 +0900 Subject: [PATCH] Upgrade Golang to 1.17 (#6) * Upgrade Golang to 1.17 * Support m1 --- .devcontainer/Dockerfile | 10 +++++----- .github/workflows/release.yaml | 4 ++-- .github/workflows/test.yaml | 16 ++++++++-------- .goreleaser.yml | 1 + 4 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 64cb478..57fcd01 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,9 +1,9 @@ -FROM circleci/golang:1.15 +FROM golang:1.17 -RUN sudo apt-get update && \ - sudo apt-get install -y --no-install-recommends tmux && \ - sudo apt-get clean && \ - sudo rm -rf /var/lib/apt/lists/* +RUN apt-get update && \ + apt-get install -y --no-install-recommends tmux && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* ENV XDG_CACHE_HOME=/tmp/.cache ENV GO111MODULE on diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6ad28e6..710f3e4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -3,7 +3,7 @@ name: Release on: push: tags: - - '*' + - "*" permissions: contents: write @@ -18,7 +18,7 @@ jobs: - uses: actions/setup-go@v2 with: - go-version: 1.15 + go-version: 1.17 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3dd0fed..79fdece 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -15,13 +15,13 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.15 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 - - name: Test - run: make test + - name: Test + run: make test diff --git a/.goreleaser.yml b/.goreleaser.yml index f151a97..6b8fc17 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -5,6 +5,7 @@ builds: - darwin goarch: - amd64 + - arm64 # Packging only binary # FYI: https://goreleaser.com/customization/archive/#packaging-only-the-binaries