-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathandroid-debug-artifact-release.yml
More file actions
69 lines (67 loc) · 2.06 KB
/
Copy pathandroid-debug-artifact-release.yml
File metadata and controls
69 lines (67 loc) · 2.06 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
63
64
65
66
67
68
69
name: Android Release CI
on:
release:
types: [published, created]
jobs:
apk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
distribution: "temurin"
java-version: 17
- name: Set up NDK
uses: nttld/setup-ndk@v1
with:
ndk-version: r28c
link-to-sdk: true
local-cache: true
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Cache Rust dependencies
uses: actions/cache@v5
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
file_operations/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Setup Rust for Android
run: |
cd file_operations
chmod +x setup_rust_android.sh
./setup_rust_android.sh
- name: Verify Rust setup
run: |
cd file_operations
echo "🔍 Verifying Rust Android targets..."
rustup target list --installed | grep android || echo "No Android targets found"
echo "🔍 Verifying cargo configuration..."
if [ -f .cargo/config.toml ]; then
echo "✅ .cargo/config.toml exists"
else
echo "❌ .cargo/config.toml missing"
exit 1
fi
- name: Build with Gradle
uses: gradle/actions/setup-gradle@v6
with:
arguments: assembleDebug
- name: Upload fdroid artifact
uses: actions/upload-artifact@v7
with:
name: Amaze-Fdroid-debug
path: app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk
- name: Upload play artifact
uses: actions/upload-artifact@v7
with:
name: Amaze-Play-debug
path: app/build/outputs/apk/play/debug/app-play-debug.apk