Skip to content

Commit 33e4f44

Browse files
committed
chore: clean workflow
Signed-off-by: Fernandez Ludovic <[email protected]>
1 parent bd6b417 commit 33e4f44

File tree

1 file changed

+7
-55
lines changed

1 file changed

+7
-55
lines changed

.github/workflows/gci.yml

Lines changed: 7 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -5,78 +5,30 @@ on:
55

66
jobs:
77
build:
8-
name: Build ${{ matrix.target_os }}_${{ matrix.target_arch }} binaries
8+
name: Tests
99
runs-on: ${{ matrix.os }}
1010
env:
11-
GOVER: 1.21
12-
GOOS: ${{ matrix.target_os }}
13-
GOARCH: ${{ matrix.target_arch }}
11+
GOVER: 1.23
1412
GOPROXY: https://proxy.golang.org
1513
ARCHIVE_OUTDIR: dist/archives
1614
TEST_OUTPUT_FILE_PREFIX: test_report
1715
strategy:
1816
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]
3518
steps:
19+
- name: Check out code into the Go module directory
20+
uses: actions/checkout@v4
3621
- name: Set up Go ${{ env.GOVER }}
3722
uses: actions/setup-go@v5
3823
with:
3924
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-
7225
- 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
7528
with:
7629
version: ${{ env.GOLANGCILINT_VER }}
7730
- name: Run make test
7831
env:
7932
COVERAGE_OPTS: "-coverprofile=coverage.txt -covermode=atomic"
80-
if: matrix.target_arch == 'amd64'
8133
run: make test
8234

0 commit comments

Comments
 (0)