Skip to content

Commit d8b6f04

Browse files
committed
Update workflow
1 parent e5fbfae commit d8b6f04

File tree

3 files changed

+231
-0
lines changed

3 files changed

+231
-0
lines changed

.github/workflows/debug.yml

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: Debug build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
paths-ignore:
9+
- '**.md'
10+
- '.github/**'
11+
- '!.github/workflows/debug.yml'
12+
pull_request:
13+
branches:
14+
- main
15+
- dev
16+
17+
jobs:
18+
build:
19+
name: Linux Debug build
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
- name: Setup Go
27+
uses: actions/setup-go@v4
28+
with:
29+
go-version: ^1.22
30+
- name: Build
31+
run: |
32+
make test
33+
build_go120:
34+
name: Linux Debug build (Go 1.20)
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v4
39+
with:
40+
fetch-depth: 0
41+
- name: Setup Go
42+
uses: actions/setup-go@v4
43+
with:
44+
go-version: ~1.20
45+
continue-on-error: true
46+
- name: Build
47+
run: |
48+
make test
49+
build_go121:
50+
name: Linux Debug build (Go 1.21)
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v4
55+
with:
56+
fetch-depth: 0
57+
- name: Setup Go
58+
uses: actions/setup-go@v4
59+
with:
60+
go-version: ~1.21
61+
continue-on-error: true
62+
- name: Build
63+
run: |
64+
make test
65+
build__windows:
66+
name: Windows Debug build
67+
runs-on: windows-latest
68+
steps:
69+
- name: Checkout
70+
uses: actions/checkout@v4
71+
with:
72+
fetch-depth: 0
73+
- name: Setup Go
74+
uses: actions/setup-go@v4
75+
with:
76+
go-version: ^1.22
77+
continue-on-error: true
78+
- name: Build
79+
run: |
80+
make test
81+
build_darwin:
82+
name: macOS Debug build
83+
runs-on: macos-latest
84+
steps:
85+
- name: Checkout
86+
uses: actions/checkout@v4
87+
with:
88+
fetch-depth: 0
89+
- name: Setup Go
90+
uses: actions/setup-go@v4
91+
with:
92+
go-version: ^1.22
93+
continue-on-error: true
94+
- name: Build
95+
run: |
96+
make test

.github/workflows/lint.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
paths-ignore:
9+
- '**.md'
10+
- '.github/**'
11+
- '!.github/workflows/lint.yml'
12+
pull_request:
13+
branches:
14+
- main
15+
- dev
16+
17+
jobs:
18+
build:
19+
name: Build
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
- name: Setup Go
27+
uses: actions/setup-go@v4
28+
with:
29+
go-version: ^1.22
30+
- name: Cache go module
31+
uses: actions/cache@v3
32+
with:
33+
path: |
34+
~/go/pkg/mod
35+
key: go-${{ hashFiles('**/go.sum') }}
36+
- name: golangci-lint
37+
uses: golangci/golangci-lint-action@v3
38+
with:
39+
version: latest

workflows/debug.yml

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: Debug build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
paths-ignore:
9+
- '**.md'
10+
- '.github/**'
11+
- '!.github/workflows/debug.yml'
12+
pull_request:
13+
branches:
14+
- main
15+
- dev
16+
17+
jobs:
18+
build:
19+
name: Linux Debug build
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
- name: Setup Go
27+
uses: actions/setup-go@v4
28+
with:
29+
go-version: ^1.22
30+
- name: Build
31+
run: |
32+
make test
33+
build_go120:
34+
name: Linux Debug build (Go 1.20)
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v4
39+
with:
40+
fetch-depth: 0
41+
- name: Setup Go
42+
uses: actions/setup-go@v4
43+
with:
44+
go-version: ~1.20
45+
continue-on-error: true
46+
- name: Build
47+
run: |
48+
make test
49+
build_go121:
50+
name: Linux Debug build (Go 1.21)
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v4
55+
with:
56+
fetch-depth: 0
57+
- name: Setup Go
58+
uses: actions/setup-go@v4
59+
with:
60+
go-version: ~1.21
61+
continue-on-error: true
62+
- name: Build
63+
run: |
64+
make test
65+
build__windows:
66+
name: Windows Debug build
67+
runs-on: windows-latest
68+
steps:
69+
- name: Checkout
70+
uses: actions/checkout@v4
71+
with:
72+
fetch-depth: 0
73+
- name: Setup Go
74+
uses: actions/setup-go@v4
75+
with:
76+
go-version: ^1.22
77+
continue-on-error: true
78+
- name: Build
79+
run: |
80+
make test
81+
build_darwin:
82+
name: macOS Debug build
83+
runs-on: macos-latest
84+
steps:
85+
- name: Checkout
86+
uses: actions/checkout@v4
87+
with:
88+
fetch-depth: 0
89+
- name: Setup Go
90+
uses: actions/setup-go@v4
91+
with:
92+
go-version: ^1.22
93+
continue-on-error: true
94+
- name: Build
95+
run: |
96+
make test

0 commit comments

Comments
 (0)