Skip to content

Commit 731d169

Browse files
authored
github: Add build workflow for tigate (#194)
1 parent fee5dce commit 731d169

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed
+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- "release-[0-9].[0-9]*"
8+
paths-ignore:
9+
- '**/*.md'
10+
- '**/OWNERS'
11+
- 'OWNERS'
12+
- 'OWNERS_ALIASES'
13+
14+
pull_request:
15+
branches:
16+
- master
17+
- "release-[0-9].[0-9]*"
18+
paths-ignore:
19+
- '**/*.md'
20+
- '**/OWNERS'
21+
- 'OWNERS'
22+
- 'OWNERS_ALIASES'
23+
24+
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
25+
concurrency:
26+
group: ${{ github.ref }}-${{ github.workflow }}
27+
cancel-in-progress: true
28+
29+
jobs:
30+
mac_build:
31+
name: Mac OS Build
32+
runs-on: macos-latest
33+
steps:
34+
- name: Check out code into the Go module directory
35+
uses: actions/checkout@v2
36+
37+
- name: Setup Go environment
38+
uses: actions/setup-go@v3
39+
with:
40+
go-version: '1.21'
41+
42+
- name: Cache Tools
43+
id: cache-tools
44+
uses: actions/cache@v2
45+
with:
46+
path: tools/bin
47+
key: macos-latest-ticdc-tools-${{ hashFiles('tools/check/go.sum') }}
48+
49+
- name: Build
50+
run: make cdc
51+
52+
arm_build:
53+
runs-on: [ARM64]
54+
name: Arm Build
55+
strategy:
56+
fail-fast: false
57+
matrix:
58+
arch: [ARM64]
59+
steps:
60+
- name: Check out code
61+
uses: actions/checkout@v2
62+
63+
- name: Setup Go environment
64+
uses: actions/setup-go@v3
65+
with:
66+
go-version: '1.21'
67+
68+
- name: Build
69+
run: make cdc

0 commit comments

Comments
 (0)