From ed21d7e8ab54bbbb84aee930c68ab3a70007895e Mon Sep 17 00:00:00 2001 From: AMFANTAZY <166687131+AMFANTAZY@users.noreply.github.com> Date: Tue, 27 Oct 2026 14:40:03 +0700 Subject: [PATCH 1/3] Add GitHub Actions workflow for Media3 APK build --- .github/workflows/build-media3.yml | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/build-media3.yml diff --git a/.github/workflows/build-media3.yml b/.github/workflows/build-media3.yml new file mode 100644 index 00000000000..45ba5d12ae0 --- /dev/null +++ b/.github/workflows/build-media3.yml @@ -0,0 +1,34 @@ +name: Compile Jetpack Media3 Demo APK + +on: + workflow_dispatch: # Allows you to start the build with a click + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Media3 Repository + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: '17' + + - name: Set up Android SDK + uses: android-actions/setup-android@v3 + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Compile Media3 Demo APK + run: | + ./gradlew :demo:assembleNoDecoderExtensionsDebug --stacktrace + + - name: Upload Compiled APK + uses: actions/upload-artifact@v4 + with: + name: Media3-Demo-APK + path: demos/main/buildout/outputs/apk/**/*.apk From fcc459d306953c2c802b92095bde8e740ba1c8ee Mon Sep 17 00:00:00 2001 From: AMFANTAZY <166687131+AMFANTAZY@users.noreply.github.com> Date: Tue, 27 Oct 2026 14:41:31 +0700 Subject: [PATCH 2/3] Add GitHub Actions workflow to compile Media3 APK --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000000..45ba5d12ae0 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +name: Compile Jetpack Media3 Demo APK + +on: + workflow_dispatch: # Allows you to start the build with a click + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Media3 Repository + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: '17' + + - name: Set up Android SDK + uses: android-actions/setup-android@v3 + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Compile Media3 Demo APK + run: | + ./gradlew :demo:assembleNoDecoderExtensionsDebug --stacktrace + + - name: Upload Compiled APK + uses: actions/upload-artifact@v4 + with: + name: Media3-Demo-APK + path: demos/main/buildout/outputs/apk/**/*.apk From 684d8fc06968a90435348b6d0735a771e6488489 Mon Sep 17 00:00:00 2001 From: AMFANTAZY <166687131+AMFANTAZY@users.noreply.github.com> Date: Tue, 27 Oct 2026 14:44:34 +0700 Subject: [PATCH 3/3] Add Android CI workflow for Gradle build --- .github/workflows/android.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/android.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 00000000000..39670236799 --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,26 @@ +name: Android CI + +on: + push: + branches: [ "release" ] + pull_request: + branches: [ "release" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build