Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 20 additions & 15 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,25 @@ 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'
- 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.iml
.idea/
.gradle
/local.properties
/.idea/caches/build_file_checksums.ser
Expand Down
Loading