Skip to content

Commit bf13b7a

Browse files
committed
ci: add github actions pipeline
1 parent 59f9846 commit bf13b7a

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
tags:
6+
- '[0-9]+.[0-9]+.[0-9]+'
7+
pull_request:
8+
paths-ignore:
9+
- 'README.md'
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
env:
16+
GO_VERSION: 1.24.2
17+
18+
jobs:
19+
libcore:
20+
name: build
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
with:
26+
ref: ${{ github.head_ref }}
27+
28+
- name: Setup Go ${{ env.GO_VERSION }}
29+
uses: actions/setup-go@v5
30+
with:
31+
go-version: ${{ env.GO_VERSION }}
32+
33+
- name: Build
34+
working-directory: scripts
35+
run: bash -x ./build.sh
36+
37+
- name: Calculate MD5 checksum
38+
run: echo "MD5=$(md5sum libcore.aar | cut -d ' ' -f 1)" >> $GITHUB_ENV
39+
40+
- name: Upload artifact
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: libcore-${{ env.MD5 }}
44+
path: libcore.aar

0 commit comments

Comments
 (0)