based on Release v2026.04.04.040456-af79daf #62
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 | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.25 | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Accept Android licenses | |
| run: yes | sdkmanager --licenses | |
| - name: Install gomobile | |
| run: | | |
| MOBILE_TOOLS_VERSION=v0.0.0-20260312152759-81488f6aeb60 | |
| go install golang.org/x/mobile/cmd/gomobile@${MOBILE_TOOLS_VERSION} | |
| go install golang.org/x/mobile/cmd/gobind@${MOBILE_TOOLS_VERSION} | |
| echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH" | |
| - name: Build Go mobile AAR | |
| run: bash ./android/build_go_mobile.sh | |
| - name: Build Debug APK | |
| working-directory: android | |
| run: chmod +x gradlew && ./gradlew :app:assembleDebug --stacktrace | |
| - name: List APK outputs | |
| run: ls -la android/app/build/outputs/apk/debug/ | |
| - name: Upload APK artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: app-debug-apk-splits | |
| path: android/app/build/outputs/apk/debug/*.apk | |
| - name: Upload Go AAR artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: masterdnsvpn-aar | |
| path: android/app/libs/masterdnsvpn.aar |