Repository navigation
feat: Enhanced Geek Mode with VIP Cache manager and deep logs #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Android CI Build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - '**.md' | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| name: Build Debug APK | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Install NDK | |
| run: | | |
| NDK_VER="28.2.13676358" | |
| echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager \ | |
| --channel=0 \ | |
| --install "ndk;$NDK_VER" | |
| echo "ANDROID_NDK_HOME=$ANDROID_HOME/ndk/$NDK_VER" >> $GITHUB_ENV | |
| echo "NDK_HOME=$ANDROID_HOME/ndk/$NDK_VER" >> $GITHUB_ENV | |
| - name: Build libhevtun | |
| run: | | |
| bash compile-hevtun.sh | |
| mkdir -p V2rayNG/app/libs | |
| cp -r libs/* V2rayNG/app/libs/ | |
| - name: Fetch AndroidLibXrayLite tag | |
| id: xray_tag | |
| run: | | |
| pushd AndroidLibXrayLite | |
| CURRENT_TAG=$(git describe --tags --abbrev=0) | |
| echo "tag=$CURRENT_TAG" >> $GITHUB_OUTPUT | |
| popd | |
| - name: Download libv2ray | |
| uses: robinraju/release-downloader@v1.12 | |
| with: | |
| repository: '2dust/AndroidLibXrayLite' | |
| tag: ${{ steps.xray_tag.outputs.tag }} | |
| fileName: 'libv2ray.aar' | |
| out-file-path: V2rayNG/app/libs/ | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| working-directory: V2rayNG | |
| - name: Build Debug APK | |
| run: ./gradlew assembleDebug | |
| working-directory: V2rayNG |