-
Notifications
You must be signed in to change notification settings - Fork 39
53 lines (42 loc) · 960 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: build binaries
on:
pull_request:
branches:
- master
- "*_release"
paths:
- '**/*.go'
- 'go.mod'
- 'go.sum'
- '**/*.mk'
push:
branches:
- master
- "*_release"
paths:
- '**/*.go'
- 'go.mod'
- 'go.sum'
- '**/*.mk'
env:
GO_VERSION: "1.22"
jobs:
build-images:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: generate bindata
run: make dashboard-bindata-gen dashboard-doc-gen
- name: go mod vendor
run: go mod vendor
- name: go build ob-operator
run: make build
- name: go build oceanbase-dashboard
run: make dashboard-build
- name: go build oceanbase-cli
run: make cli-build