feat: support scaling and quality parameters in mjpeg streaming #21
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 | |
| on: | |
| push: | |
| branches: [ main ] | |
| tags: | |
| - "*.*.*" | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 22 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '22' | |
| distribution: 'temurin' | |
| - name: Build with Gradle | |
| run: | | |
| mkdir dist | |
| chmod +x gradlew | |
| ./gradlew assembleDebug | |
| mv app/build/outputs/apk/debug/app-debug.apk dist/mobilenext-devicekit.apk | |
| - name: Upload APK artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mobilenext-devicekit | |
| path: dist/mobilenext-devicekit.apk | |
| retention-days: 1 | |
| - name: Upload to GitHub Release | |
| if: github.ref_type == 'tag' | |
| uses: softprops/action-gh-release@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.RELEASES_TOKEN }} | |
| with: | |
| name: Version ${{ github.ref_name }} | |
| files: | | |
| dist/mobilenext-devicekit.apk | |