Add Android client support and unify cross-platform builds
This commit is contained in:
32
.github/workflows/build.yml
vendored
32
.github/workflows/build.yml
vendored
@@ -41,6 +41,38 @@ jobs:
|
||||
path: web/dist
|
||||
retention-days: 1
|
||||
|
||||
android-apk:
|
||||
name: Build Android debug APK
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '17'
|
||||
|
||||
- name: Setup Android SDK
|
||||
uses: android-actions/setup-android@v3
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
with:
|
||||
gradle-version: '8.7'
|
||||
|
||||
- name: Build debug APK
|
||||
working-directory: android
|
||||
run: gradle --no-daemon assembleDebug
|
||||
|
||||
- name: Upload Android APK artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: gotunnel-android-debug-apk
|
||||
path: android/app/build/outputs/apk/debug/app-debug.apk
|
||||
retention-days: 7
|
||||
|
||||
build:
|
||||
name: Build ${{ matrix.goos }}/${{ matrix.goarch }}
|
||||
needs: frontend
|
||||
|
||||
Reference in New Issue
Block a user