|
5 | 5 |
|
6 | 6 | jobs:
|
7 | 7 | build:
|
8 |
| - name: Build ${{ matrix.target_os }}_${{ matrix.target_arch }} binaries |
| 8 | + name: Tests |
9 | 9 | runs-on: ${{ matrix.os }}
|
10 | 10 | env:
|
11 |
| - GOVER: 1.21 |
12 |
| - GOOS: ${{ matrix.target_os }} |
13 |
| - GOARCH: ${{ matrix.target_arch }} |
| 11 | + GOVER: 1.23 |
14 | 12 | GOPROXY: https://proxy.golang.org
|
15 | 13 | ARCHIVE_OUTDIR: dist/archives
|
16 | 14 | TEST_OUTPUT_FILE_PREFIX: test_report
|
17 | 15 | strategy:
|
18 | 16 | matrix:
|
19 |
| - os: [ubuntu-latest, windows-2019, macOS-latest] |
20 |
| - target_arch: [arm, arm64, amd64] |
21 |
| - include: |
22 |
| - - os: ubuntu-latest |
23 |
| - target_os: linux |
24 |
| - - os: windows-2019 |
25 |
| - target_os: windows |
26 |
| - - os: macOS-latest |
27 |
| - target_os: darwin |
28 |
| - exclude: |
29 |
| - - os: windows-2019 |
30 |
| - target_arch: arm |
31 |
| - - os: windows-2019 |
32 |
| - target_arch: arm64 |
33 |
| - - os: macOS-latest |
34 |
| - target_arch: arm |
| 17 | + os: [ubuntu-latest, windows-latest, macos-latest] |
35 | 18 | steps:
|
| 19 | + - name: Check out code into the Go module directory |
| 20 | + uses: actions/checkout@v4 |
36 | 21 | - name: Set up Go ${{ env.GOVER }}
|
37 | 22 | uses: actions/setup-go@v5
|
38 | 23 | with:
|
39 | 24 | go-version: ${{ env.GOVER }}
|
40 |
| - - name: Check out code into the Go module directory |
41 |
| - uses: actions/checkout@v4 |
42 |
| - - name: Cache Go modules (Linux) |
43 |
| - if: matrix.target_os == 'linux' |
44 |
| - uses: actions/cache@v3 |
45 |
| - with: |
46 |
| - path: | |
47 |
| - ~/.cache/go-build |
48 |
| - ~/go/pkg/mod |
49 |
| - key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}-build-${{ hashFiles('**/go.sum') }} |
50 |
| - restore-keys: | |
51 |
| - ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}-build- |
52 |
| - - name: Cache Go modules (Windows) |
53 |
| - if: matrix.target_os == 'windows' |
54 |
| - uses: actions/cache@v3 |
55 |
| - with: |
56 |
| - path: | |
57 |
| - ~\AppData\Local\go-build |
58 |
| - ~\go\pkg\mod |
59 |
| - key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}-build-${{ hashFiles('**/go.sum') }} |
60 |
| - restore-keys: | |
61 |
| - ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}-build- |
62 |
| - - name: Cache Go modules (macOS) |
63 |
| - if: matrix.target_os == 'darwin' |
64 |
| - uses: actions/cache@v3 |
65 |
| - with: |
66 |
| - path: | |
67 |
| - ~/Library/Caches/go-build |
68 |
| - ~/go/pkg/mod |
69 |
| - key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}-build-${{ hashFiles('**/go.sum') }} |
70 |
| - restore-keys: | |
71 |
| - ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}-build- |
72 | 25 | - name: golangci-lint
|
73 |
| - if: matrix.target_arch == 'amd64' && matrix.target_os == 'linux' |
74 |
| - uses: golangci/golangci-lint-action@v4 |
| 26 | + if: matrix.os == 'linux' |
| 27 | + uses: golangci/golangci-lint-action@v6 |
75 | 28 | with:
|
76 | 29 | version: ${{ env.GOLANGCILINT_VER }}
|
77 | 30 | - name: Run make test
|
78 | 31 | env:
|
79 | 32 | COVERAGE_OPTS: "-coverprofile=coverage.txt -covermode=atomic"
|
80 |
| - if: matrix.target_arch == 'amd64' |
81 | 33 | run: make test
|
82 | 34 |
|
0 commit comments