-
Notifications
You must be signed in to change notification settings - Fork 28
62 lines (51 loc) · 1.56 KB
/
Copy pathbuild.yml
File metadata and controls
62 lines (51 loc) · 1.56 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
51
52
53
54
55
56
57
58
59
60
61
62
name: Build
on:
push:
branches: [ Miku ]
pull_request:
branches: [ Miku ]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
build-debug:
name: Build debug APKs
runs-on: ubuntu-latest
steps:
# The core/mihomo submodule is pinned to a HSSkyBoy/mihomo fork commit.
# Make sure that fork's `Alpha` branch (with the naive outbound) is pushed
# to the remote, otherwise this checkout can't fetch the pinned commit.
- name: Checkout (with submodules)
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 1
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "21"
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
cache-dependency-path: core/mihomo-bridge/go.sum
- name: Set up Android SDK
uses: android-actions/setup-android@v3
- name: Install NDK and CMake
run: sdkmanager --install "ndk;29.0.13599879" "cmake;3.22.1"
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build debug APKs (per-ABI)
run: |
chmod +x gradlew
./gradlew :app:assembleDebug --stacktrace --no-daemon
- name: Upload APKs
uses: actions/upload-artifact@v4
with:
name: mikubox-cla-debug-apks
path: app/build/outputs/apk/debug/*.apk
if-no-files-found: error