Build [APK] #338
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Install desktop-file-utils | |
run: sudo apt-get install desktop-file-utils | |
- name: Download appimagetool | |
run: wget https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage -O /usr/local/bin/appimagetool | |
- name: Grant execute permission for appimagetool | |
run: chmod +x /usr/local/bin/appimagetool | |
- name: test appimagetool | |
run: appimagetool --help | |
# - name: Build debug APK | |
# run: ./gradlew packageDebug | |
# - name: Build release APK | |
# run: ./gradlew packageRelease | |
- name: Build AppImage | |
run: ./gradlew actuallyPackageAppImage | |
# - name: Upload universal debug APK artifact | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: androidApp-debug.apk | |
# path: androidApp/build/outputs/apk/debug/androidApp-debug.apk | |
# - name: Upload universal release APK artifact | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: androidApp-release.apk | |
# path: androidApp/build/outputs/apk/release/androidApp-release.apk | |
- name: Upload AppImage artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: desktopApp-release.appimage | |
path: desktopApp/build/*.appimage |