diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index f90e696f..04210f90 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -28,12 +28,22 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build Release Without Video Module - run: ./tasks.sh --release --enable-cmake --disable-video-module --build + run: ./tasks.sh --enable-cmake --release --disable-video-module --build + - name: Save build artifacts - Release Without Video Module + run: mv $(find "cgeDemo/build" -iname "*.apk" | grep release) demoRelease/cgeDemo_NoVideoRecord.apk - name: Build Release With Video Module - run: ./tasks.sh --release --enable-cmake --enable-video-module --build - - name: Build Release Without Video Module - run: ./tasks.sh --debug --enable-cmake --disable-video-module --build - - name: Build Release With Video Module - run: ./tasks.sh --debug --enable-cmake --enable-video-module --build + run: ./tasks.sh --enable-cmake --release --enable-video-module --build + - name: Save build artifacts - Release With Video Module + run: mv $(find "cgeDemo/build" -iname "*.apk" | grep release) demoRelease/cgeDemo.apk - name: lint run: ./gradlew lint + - name: upload artifacts + uses: actions/upload-artifact@v4 + with: + name: my-artifact + path: | + demoRelease/cgeDemo_NoVideoRecord.apk + demoRelease/cgeDemo.apk + compression-level: 0 + retention-days: 15 + if-no-files-found: error