Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit dac72af

Browse files
committed
Update GitHub Actions workflows
Versions have been broadly updated but releases are still being generated with the oldest supported Go version, not the latest.
1 parent 2187838 commit dac72af

File tree

4 files changed

+24
-23
lines changed

4 files changed

+24
-23
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,21 @@ permissions:
88

99
jobs:
1010
goreleaser:
11-
# we need ubuntu 20.04 because golines needs
12-
# to run on hosts with older glibc versions
13-
runs-on: ubuntu-20.04
11+
# using Ubuntu 22.04 should help maximize the
12+
# glibc compatibility since across the board
13+
# without using a too-old-to-support version
14+
# of Ubuntu.
15+
runs-on: ubuntu-22.04
1416
steps:
15-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1618
with:
1719
fetch-depth: 0
1820
- uses: actions/setup-go@v5
1921
with:
20-
go-version: "1.21"
22+
go-version: "1.24"
2123
cache: false
2224
- name: build golines
23-
uses: goreleaser/goreleaser-action@v5
25+
uses: goreleaser/goreleaser-action@v6
2426
with:
2527
distribution: goreleaser
2628
version: latest

.github/workflows/lint.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@ permissions:
88
jobs:
99
golangci:
1010
name: golines lint
11-
# we need ubuntu 20.04 because golines needs
12-
# to run on hosts with older glibc versions
13-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
1412
steps:
15-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1614
- uses: actions/setup-go@v5
1715
with:
18-
go-version: "1.21"
16+
go-version: "1.24"
1917
cache: false
2018
- name: run golangci-lint
21-
uses: golangci/golangci-lint-action@v3
19+
uses: golangci/golangci-lint-action@v8
2220
with:
2321
version: latest
2422
install-mode: binary

.github/workflows/release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@ permissions:
1010

1111
jobs:
1212
goreleaser:
13-
# we need ubuntu 20.04 because golines needs
14-
# to run on hosts with older glibc versions
15-
runs-on: ubuntu-20.04
13+
# using Ubuntu 22.04 should help maximize the
14+
# glibc compatibility since across the board
15+
# without using a too-old-to-support version
16+
# of Ubuntu.
17+
runs-on: ubuntu-22.04
1618
steps:
17-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v5
1820
with:
1921
fetch-depth: 0
2022
- uses: actions/setup-go@v5
2123
with:
22-
go-version: "1.21"
24+
go-version: "1.24"
2325
cache: false
2426
- name: release golines
2527
uses: goreleaser/goreleaser-action@v5

.github/workflows/test.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,17 @@ jobs:
88
fail-fast: false
99
matrix:
1010
os:
11-
# we need ubuntu 20.04 because golines needs
12-
# to run on hosts with older glibc versions
13-
- ubuntu-20.04
11+
- ubuntu-latest
1412
- macos-latest
1513
- windows-latest
1614
go:
17-
- "1.21"
18-
- "1.20"
15+
- "1.23"
16+
- "1.24"
17+
- "1.25"
1918
runs-on: ${{ matrix.os }}
2019
name: golines test (using go ${{ matrix.go }} on ${{ matrix.os }})
2120
steps:
22-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
2322
- name: test golines
2423
uses: actions/setup-go@v5
2524
with:

0 commit comments

Comments
 (0)