Skip to content

Commit 940e699

Browse files
authored
ci: add github actions pipeline (#2)
1 parent 59f9846 commit 940e699

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
container:
23+
image: cimg/android:2023.09-ndk
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
with:
28+
ref: ${{ github.head_ref }}
29+
30+
- name: Setup Go ${{ env.GO_VERSION }}
31+
uses: actions/setup-go@v5
32+
with:
33+
go-version: ${{ env.GO_VERSION }}
34+
35+
- name: Build
36+
working-directory: scripts
37+
run: bash -x ./build.sh
38+
39+
- name: Calculate MD5 checksum
40+
run: echo "MD5=$(md5sum libcore.aar | cut -d ' ' -f 1)" >> $GITHUB_ENV
41+
42+
- name: Upload artifact
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: libcore-${{ env.MD5 }}
46+
path: libcore.aar

0 commit comments

Comments
 (0)