forked from databendlabs/databend
-
Notifications
You must be signed in to change notification settings - Fork 0
133 lines (122 loc) · 3.59 KB
/
production.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
name: Production
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'website/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
PROTOC: protoc
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/check
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
build:
runs-on: ${{ matrix.config.os }}
needs: check
strategy:
matrix:
config:
- { os: ubuntu-latest, target: x86_64-unknown-linux-gnu, cross: false }
- { os: ubuntu-latest, target: aarch64-unknown-linux-gnu, cross: true }
- { os: macos-11, target: x86_64-apple-darwin, cross: false }
- { os: macos-11, target: aarch64-apple-darwin, cross: false }
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/build_release
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
test_unit:
runs-on: ${{ matrix.config.os }}
needs: check
strategy:
matrix:
config:
- { os: ubuntu-latest, target: x86_64-unknown-linux-gnu }
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/test_unit
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
codecov_token: ${{ secrets.CODECOV_TOKEN }}
test_stateless_standalone:
runs-on: ${{ matrix.config.os }}
needs: build
strategy:
matrix:
config:
- { os: ubuntu-latest, target: x86_64-unknown-linux-gnu }
- { os: macos-11, target: x86_64-apple-darwin }
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/test_stateless_standalone
with:
profile: release
test_stateless_cluster:
runs-on: ${{ matrix.config.os }}
needs: build
strategy:
matrix:
config:
- { os: ubuntu-latest, target: x86_64-unknown-linux-gnu }
- { os: macos-11, target: x86_64-apple-darwin }
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/test_stateless_cluster
with:
profile: release
test_stateful_standalone:
runs-on: ${{ matrix.config.os }}
needs: build
strategy:
matrix:
config:
- { os: ubuntu-latest, target: x86_64-unknown-linux-gnu }
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/test_stateful_standalone
with:
profile: release
test_management_mode:
runs-on: ${{ matrix.config.os }}
needs: build
strategy:
matrix:
config:
- { os: ubuntu-latest, target: x86_64-unknown-linux-gnu }
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/test_management_mode
with:
profile: release
publish_image:
runs-on: ${{ matrix.config.os }}
# Release after all tests have been passed.
needs: [
test_unit,
test_stateless_standalone,
test_stateless_cluster,
test_stateful_standalone,
test_management_mode
]
strategy:
matrix:
config:
- { os: ubuntu-latest, target: x86_64-unknown-linux-gnu, platform: linux/amd64 }
- { os: ubuntu-latest, target: aarch64-unknown-linux-gnu, platform: linux/arm64 }
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/publish_image
with:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
dockerhub_namespace: ${{ secrets.DOCKERHUB_NAMESPACE }}