Skip to content

Commit 80478fc

Browse files
committed
ci: change to use GitHub actions
Signed-off-by: PoAn Yang <[email protected]>
1 parent fe00de2 commit 80478fc

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
jobs:
8+
build-amd64:
9+
name: Build AMD64 binaries
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
# Build binaries
16+
- name: Run ci
17+
run: make ci
18+
19+
- uses: codecov/codecov-action@v4
20+
with:
21+
files: ./coverage.out
22+
flags: unittests
23+
token: ${{ secrets.CODECOV_TOKEN }}
24+
25+
build-arm64:
26+
name: Build ARM64 binaries
27+
runs-on: oracle-aarch64-2cpu-8gb
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v4
31+
32+
# Build binaries
33+
- name: Run ci
34+
run: make ci
35+
36+
- uses: codecov/codecov-action@v4
37+
with:
38+
files: ./coverage.out
39+
flags: unittests
40+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)