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