From 4b66a222cd47e15197278ac68c593e7bbf05470a Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Wed, 10 May 2023 12:37:35 -0600 Subject: [PATCH] ci: update go (1.19.7 -> 1.19.9, 1.20.2 -> 1.20.4) --- .github/workflows/push.yaml | 31 +++---------------------------- .github/workflows/release.yaml | 4 ++-- 2 files changed, 5 insertions(+), 30 deletions(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index c3f9bf7..c092cb4 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -16,44 +16,19 @@ jobs: fail-fast: false matrix: os: [ubuntu-20.04] - go: ["1.19.7", "1.20.2"] + go: ["1.19.9", "1.20.4"] goos: [linux] goarch: [amd64, arm64] steps: - name: Setup Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} - - name: Code Checkout + - name: Code checkout uses: actions/checkout@v3 - - name: Gather environment variables - id: env - run: | - printf "Go Executable Path: $(which go)\n" - printf "Go Version: $(go version)\n" - printf "\n\nGo Environment:\n\n" - go env - printf "\n\nSystem Environment:\n\n" - env - printf "Git Version: $(git version)\n\n" - echo "version_tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT - echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - echo "go_cache=$(go env GOCACHE)" >> $GITHUB_OUTPUT - echo "go_mod_cache=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT - - - name: Build Cache - uses: actions/cache@v3 - with: - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - path: | - ${{ steps.env.outputs.go_cache }} - ${{ steps.env.outputs.go_mod_cache }} - - name: go mod download env: CGO_ENABLED: 0 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ebefd01..37b7379 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -15,9 +15,9 @@ jobs: uses: actions/checkout@v3 - name: Setup Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: - go-version: "1.19.7" + go-version: "1.19.9" - name: Build release binaries env: