Skip to content

Commit

Permalink
Pushed workflow for auto builds on commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cioccarellia committed Feb 28, 2024
1 parent eaadbdc commit 126e80e
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/push-build.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 126e80e

Please sign in to comment.