34 lines
1000 B
YAML
34 lines
1000 B
YAML
name: Android client acceptance
|
|
|
|
on:
|
|
push:
|
|
branches: [main, "codex/**"]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test-and-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: "21"
|
|
- uses: android-actions/setup-android@v3
|
|
- name: Install Android SDK
|
|
run: sdkmanager "platforms;android-37" "build-tools;37.0.0" "platform-tools"
|
|
- name: Restore verified native dependencies
|
|
run: python3 Restore-Dependencies.py
|
|
- name: Unit tests and unsigned candidate
|
|
working-directory: V2rayNG
|
|
run: |
|
|
chmod +x gradlew
|
|
./gradlew :app:testPlaystoreReleaseUnitTest :app:assemblePlaystoreRelease --no-daemon
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: android-unsigned-candidate
|
|
path: V2rayNG/app/build/outputs/apk/playstore/release/*.apk
|
|
|