Skip to content

Commit

Permalink
ci: Update GoReleaser and other actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennwc committed Jul 6, 2024
1 parent d626074 commit f8b90a0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: actions/checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: actions/cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/go
key: ${{ env.GO_CACHE_PREFIX }}${{ hashFiles('go.mod') }}
Expand All @@ -32,19 +32,19 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: actions/checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: actions/cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/go
key: ${{ env.GO_CACHE_PREFIX }}${{ hashFiles('go.mod') }}
restore-keys: ${{ env.GO_CACHE_PREFIX }}
- name: actions/cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ./.testdata/tcc
key: tcc_${{ hashFiles('tcc_test.go') }}
Expand All @@ -59,19 +59,19 @@ jobs:
# runs-on: ubuntu-22.04
# steps:
# - name: Install Go
# uses: actions/setup-go@v2
# uses: actions/setup-go@v5
# with:
# go-version: '1.22.x'
# - name: actions/checkout
# uses: actions/checkout@v2
# uses: actions/checkout@v4
# - name: actions/cache
# uses: actions/cache@v2
# uses: actions/cache@v4
# with:
# path: ~/go
# key: ${{ env.GO_CACHE_PREFIX }}${{ hashFiles('go.mod') }}
# restore-keys: ${{ env.GO_CACHE_PREFIX }}
# - name: actions/cache
# uses: actions/cache@v2
# uses: actions/cache@v4
# with:
# path: ./.testdata/gcc
# key: gcc_${{ hashFiles('gcc_test.go') }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f8b90a0

Please sign in to comment.