-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (40 loc) · 1.3 KB
/
Copy pathbuild-android.yml
File metadata and controls
50 lines (40 loc) · 1.3 KB
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
name: Build Android sqlite3
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
workflow_dispatch:
permissions:
contents: write
jobs:
android:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Install Android NDK
run: |
yes | sdkmanager --licenses >/dev/null
sdkmanager --install "ndk;29.0.14206865"
echo "ANDROID_NDK_HOME=$ANDROID_HOME/ndk/29.0.14206865" >> "$GITHUB_ENV"
- name: Download official SQLite source
run: scripts/download_sqlite.sh
- name: Build sqlite3
run: scripts/build_android.sh
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: sqlite3-android
path: dist/sqlite3-android-*.zip
- name: Publish GitHub Release
if: startsWith(github.ref, 'refs/tags/')
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create "$GITHUB_REF_NAME" dist/sqlite3-android-*.zip \
--title "$GITHUB_REF_NAME" \
--notes "Android sqlite3 binaries built from official SQLite source." \
|| gh release upload "$GITHUB_REF_NAME" dist/sqlite3-android-*.zip --clobber