From 267955d0d465705fc49eead1dbbce8806c992fad Mon Sep 17 00:00:00 2001 From: Alex Mi Date: Fri, 14 Mar 2025 14:42:42 -0400 Subject: [PATCH 1/2] Copy github action for building --- .github/workflows/android.yml | 36 ++++++++++++++++++++--------------- .gitignore | 1 + 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 91a69d1..663d384 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -7,20 +7,26 @@ on: branches: [ "master" ] jobs: - build: - + # https://github.com/ewwink/FsClock-Android/blob/master/.github/workflows/android.yml + apk: + name: Generate APK runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: set up JDK 11 - uses: actions/setup-java@v4 - with: - java-version: '11' - distribution: 'temurin' - cache: gradle - - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: Build with Gradle - run: ./gradlew build + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + name: Setup JDK 11 + with: + distribution: 'temurin' + java-version: '11' + cache: gradle + - name: create dir + run: mkdir -p app/build/outputs/apk/debug/ + - name: Set execution flag for gradlew + run: chmod +x gradlew + - name: Build APK + run: bash ./gradlew assembleDebug --stacktrace + - uses: actions/upload-artifact@v4 + name: Upload APK + with: + name: apk + path: app/build/outputs/apk/debug/fsclock.apk diff --git a/.gitignore b/.gitignore index f75c26a..d505021 100755 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.iml +.idea/ .gradle /local.properties /.idea/caches/build_file_checksums.ser From fff63beaaca5f06aed9485bc1cb158ddff5511f1 Mon Sep 17 00:00:00 2001 From: Alex Mi Date: Fri, 14 Mar 2025 14:48:41 -0400 Subject: [PATCH 2/2] rm yml gradle cached --- .github/workflows/android.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 663d384..e5fe687 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -18,7 +18,6 @@ jobs: with: distribution: 'temurin' java-version: '11' - cache: gradle - name: create dir run: mkdir -p app/build/outputs/apk/debug/ - name: Set execution flag for gradlew