From 8faad79d89ab61600602f607ee88ba36dcd4470d Mon Sep 17 00:00:00 2001 From: Andrew Karnani Date: Mon, 29 Aug 2022 16:24:00 -0700 Subject: [PATCH] update action versions --- .github/workflows/build.yml | 8 +++++--- .github/workflows/lint.yml | 11 +++++++++-- .github/workflows/release.yml | 7 ++++--- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1004655..0754c8c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,10 +3,12 @@ on: ["push"] jobs: release-linux-amd64: - name: release linux/amd64 + name: build linux/amd64 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: '1.19' - run: go version - run: go build *.go diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 06d612f..1ca0431 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,15 +1,22 @@ name: golangci-lint on: push: + tags: + - v* + branches: + - main pull_request: jobs: golangci: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: '1.19' - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 with: # Optional: show only new issues if it's a pull request. The default value is `false`. only-new-issues: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4b50da1..6432728 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,10 +10,11 @@ jobs: strategy: matrix: goos: ["linux", "darwin"] + goarch: ["amd64", "arm64"] steps: - - uses: actions/checkout@v2 - - uses: wangyoucao577/go-release-action@v1.19 + - uses: actions/checkout@v3 + - uses: wangyoucao577/go-release-action@v1.30 with: github_token: ${{ secrets.GITHUB_TOKEN }} goos: ${{ matrix.goos }} - goarch: amd64 + goarch: ${{ matrix.goarch }}