Some checks failed
Android CI / build (push) Has been cancelled
Android Xray was pinned to v26.3.27 and never updated. The newest Xray needs Go 1.27, so the pair moves to Go 1.27.3; patch 0014 drops the obsolete sing logger bridge patch, follows the moved PacketConnWrapper, updates go.mod/go.sum and adapts the test fixtures to Xray's new rule that plain VLESS/Trojan is allowed only to private addresses. Pair: Windows 0.8.70 + Android v0.5.41. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
63 lines
1.9 KiB
YAML
63 lines
1.9 KiB
YAML
name: Android CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: android
|
|
timeout-minutes: 120
|
|
env:
|
|
GRADLE_OPTS: >-
|
|
-Dorg.gradle.daemon=false
|
|
-Dorg.gradle.workers.max=1
|
|
-Dorg.gradle.parallel=false
|
|
-Dkotlin.compiler.execution.strategy=in-process
|
|
-Dkotlin.daemon.enabled=false
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://data.forgejo.org/actions/checkout@v6
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Set up pinned Go
|
|
uses: https://data.forgejo.org/actions/setup-go@v6
|
|
with:
|
|
go-version: 1.27.3
|
|
cache: false
|
|
|
|
- name: Restore Gradle and native build cache
|
|
uses: https://data.forgejo.org/actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.gradle/caches
|
|
~/.gradle/wrapper
|
|
~/.cache/go-build
|
|
core-build/gopath/pkg/mod
|
|
key: zapret-kvn-android-${{ hashFiles('core.properties', 'gradle/wrapper/gradle-wrapper.properties', '**/*.gradle*') }}
|
|
|
|
- name: Verify, test and build
|
|
run: |
|
|
set -euo pipefail
|
|
if git grep -n -I -E -- 'git\.zapret\.moe/(api/v1/repos/)?zapretdiscordyoutube/[A-Za-z0-9._-]+-upstream' -- ':!.forgejo/workflows/ci.yml'; then
|
|
echo 'Use the official third-party source instead of our retired mirror.' >&2
|
|
exit 1
|
|
fi
|
|
scripts/ci-build.sh
|
|
|
|
- name: Upload build proof
|
|
uses: https://data.forgejo.org/forgejo/upload-artifact@v4
|
|
with:
|
|
name: zapret-kvn-build
|
|
if-no-files-found: error
|
|
path: |
|
|
app/build/outputs/apk/**/*.apk
|
|
app/build/APK-SHA256SUMS
|
|
app/build/permissions.txt
|
|
app/build/manifest-tree.txt
|
|
core-build/output/SHA256SUMS
|
|
core-build/output/core-build-metadata.json
|
|
build/release-candidate/security-report-*.json
|