From f9471986d5f4b0d89d4e874f02be0b8a8b2459f4 Mon Sep 17 00:00:00 2001 From: Surendrajat Date: Wed, 21 Feb 2024 20:36:13 +0530 Subject: [PATCH] ci: build and upload apk (#1) --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..016bd63 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: ci + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - uses: gradle/wrapper-validation-action@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: temurin + cache: gradle + - name: Set up CMake and Ninja + uses: lukka/get-cmake@latest + - name: Build with Gradle + run: ./gradlew clean && ./gradlew assembleDebug + - uses: actions/upload-artifact@v4 + with: + name: knoxvnc-debug.apk + path: app/build/outputs/apk/debug/app-debug.apk