Skip to content

Commit 7e2bab9

Browse files
committed
GitHub Actions go.yml: have a matrix for Go versions
1 parent 30a09a2 commit 7e2bab9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/go.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ jobs:
1515
build:
1616
strategy:
1717
matrix:
18-
os:
19-
- macos-latest
20-
- ubuntu-latest
21-
runs-on: ${{ matrix.os }}
18+
os: [macos-latest, ubuntu-22.04, ubuntu-latest]
19+
go: ["1.18", "1.19", "1.20", "1.21", "1.22", "1.23", "1.24"]
20+
fail-fast: false
21+
runs-on: "${{ matrix.os }}"
2222
steps:
2323
- uses: actions/checkout@v2
24-
- uses: actions/setup-go@v2
25-
- run: ./build/ci.sh
24+
- name: Set up Go "${{ matrix.go }}"
25+
uses: actions/setup-go@v2
26+
with:
27+
go-version: "${{ matrix.go }}"
28+
- run: ./build/ci.sh

0 commit comments

Comments
 (0)