From 0a0bcf612ab68af3e550cb589ad0504c38d735ad Mon Sep 17 00:00:00 2001 From: Alexander Popel Date: Wed, 15 Oct 2025 13:44:53 +0300 Subject: [PATCH] Add CI --- .github/workflows/android-sdk-ci.yml | 55 ++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/android-sdk-ci.yml diff --git a/.github/workflows/android-sdk-ci.yml b/.github/workflows/android-sdk-ci.yml new file mode 100644 index 0000000..e03f825 --- /dev/null +++ b/.github/workflows/android-sdk-ci.yml @@ -0,0 +1,55 @@ +name: Android SDK CI + +on: + pull_request: + push: + tags: + - v[0-9]+.[0-9]+.[0-9]+ + - v[0-9]+.[0-9]+.[0-9]+-* + +jobs: + sdk-tests: + name: SDK Tests + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + filter: tree:0 + - run: ./gradlew --no-daemon test + - name: Upload reports + uses: actions/upload-artifact@v4 + with: + name: reports + path: | + build/reports/*/*.html + demo-java: + name: Build Demo Java + needs: [sdk-tests] + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + filter: tree:0 + - run: ./gradlew --no-daemon -p DemoApp/DemoAppJava assembleRelease + - name: Upload APK + uses: actions/upload-artifact@v4 + with: + name: java-demo-apk + path: DemoApp/DemoAppJava/app/build/outputs/apk/release/*.apk + demo-kotlin: + name: Build Demo Kotlin + needs: [sdk-tests] + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + filter: tree:0 + - run: ./gradlew --no-daemon -p DemoApp/DemoAppKotlin assembleRelease + - name: Upload APK + uses: actions/upload-artifact@v4 + with: + name: kotlin-demo-apk + path: DemoApp/DemoAppKotlin/app/build/outputs/apk/release/*.apk