diff --git a/.github/workflows/push-build.yaml b/.github/workflows/push-build.yaml new file mode 100644 index 0000000..69653f1 --- /dev/null +++ b/.github/workflows/push-build.yaml @@ -0,0 +1,50 @@ +name: Build + +on: + push: + pull_request: + +jobs: + build: + name: Build project + runs-on: ubuntu-latest + + steps: + - name: Project Checkout + uses: actions/checkout@v2 + + - name: Setup JDK 17 + uses: actions/setup-java@v1 + with: + java-version: '17' + + - name: System Information + run: printf "\nKernel:\n " && uname -a && printf "\n\nMemory:\n " && free -h && printf "\n\nStorage:\n" && df -h && ls -la && pwd + + - name: Build project + run: ./gradlew build --stacktrace + + apk: + name: Generate APK + needs: build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Setup JDK 17 + uses: actions/setup-java@v1 + with: + java-version: '17' + + - name: System Information + run: printf "\nKernel:\n " && uname -a && printf "\n\nMemory:\n " && free -h && printf "\n\nStorage:\n" && df -h && ls -la && pwd + + - name: Build APK + run: bash ./gradlew assembleDebug --stacktrace + + - name: Upload APK + uses: actions/upload-artifact@v1 + with: + name: showcase-debug-build.apk + path: showcase/build/outputs/apk/debug/test-debug.apk \ No newline at end of file