Switched from JDK 17 to JDK 22 for VideoServer building #12
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: Build Android APK and Video Server | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Make gradlew executable (Android) | |
| run: chmod +x gradlew | |
| working-directory: ./Android | |
| - name: Build APK | |
| run: ./gradlew assembleDebug | |
| working-directory: ./Android | |
| - name: Upload APK artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: debug-apk | |
| path: Android/app/build/outputs/apk/debug/app-debug.apk | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '22' | |
| - name: Make gradlew executable (VideoServer) | |
| run: chmod +x gradlew | |
| working-directory: ./VideoServer | |
| - name: Build VideoServer | |
| run: ./gradlew build | |
| working-directory: ./VideoServer | |
| - name: Upload VideoServer jar artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: video-server-jar | |
| path: VideoServer/build/libs/*.jar |