fix(settings): coerce local-bind ports to non-root range >= 1025 #270
Workflow file for this run
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="$(tr -d '[:space:]' < android/gomobile.version)" | |
| 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: Run JVM unit tests | |
| working-directory: android | |
| run: chmod +x gradlew && ./gradlew :app:testDebugUnitTest --stacktrace | |
| - name: Upload APK artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: masterdns-android-debug-universal-apk | |
| path: android/app/build/outputs/apk/debug/app-universal-debug.apk | |
| - name: Upload Go AAR artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: masterdnsvpn-aar | |
| path: android/app/libs/masterdnsvpn.aar |