File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,23 +5,41 @@ name: "Go"
55
66on :
77 push :
8- branches : ["master"]
98 pull_request :
10- branches : ["master"]
119
1210jobs :
1311 build :
1412 strategy :
15- fail-fast : false
1613 matrix :
17- os : ["ubuntu-latest", "windows-latest", "macos-latest"]
18- go : ["1.24.x"]
14+ os :
15+ - ' ubuntu-latest' # amd64 linux
16+ - ' windows-latest' # amd64 windows
17+ - ' macos-latest' # arm64 macos
18+ - ' ubuntu-24.04-arm' # arm64 linux
19+ - ' macos-15-intel' # amd64 macos
20+ go-version :
21+ - ' 1.26'
22+ - ' 1.25'
23+ - ' 1.24'
24+ - ' 1.23'
25+ - ' 1.22'
26+ - ' 1.21'
27+ - ' 1.20'
28+ fail-fast : false
1929 runs-on : ${{ matrix.os }}
30+ defaults :
31+ run :
32+ shell : bash
33+ env :
34+ CGO_ENABLED : 0
35+ GOTOOLCHAIN : local
36+ # Fix mingw trying to be smart and converting paths https://github.com/moby/moby/issues/24029#issuecomment-250412919
37+ MSYS_NO_PATHCONV : true
2038 steps :
21- - uses : actions/checkout@v3
22- - uses : actions/setup-go@v4
39+ - uses : actions/checkout@v5
40+ - uses : actions/setup-go@v6
2341 with :
24- go-version : ${{ matrix.go }}
42+ go-version : ${{ matrix.go-version }}
2543 - run : go version
2644 - name : Build
2745 run : go build -v ./...
You can’t perform that action at this time.
0 commit comments