Skip to content

Commit

Permalink
release nightly android apk.
Browse files Browse the repository at this point in the history
  • Loading branch information
ballaswag committed Apr 21, 2024
1 parent 8734ad9 commit 8b88d6a
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/guppydroid.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: guppydroid build

on:
push:
branches: [ "develop", "main", "android" ]
tags:
- "*"

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
with:
ref: android

- uses: actions/checkout@v3
with:
ref: main
submodules: true
path: ./app/src/main/cpp/guppyscreen

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'

- name: Setup Android SDK
uses: android-actions/setup-android@v3

- name: Setup signing
env:
ENCODED_KS: ${{ secrets.KEYSTORE }}
run: |
echo $ENCODED_KS > ks.txt
base64 -d ks.txt > ks.jks
- name: Build APK
env:
KEYSTORE: ../ks.jks
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
run: ./gradlew assembleRelease

- name: nightly release
uses: softprops/action-gh-release@v2
with:
prerelease: true
name: nightly
tag_name: nightly
files: app/build/outputs/apk/release/app-release.apk
fail_on_unmatched_files: true

- name: stable release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: app/build/outputs/apk/release/app-release.apk
generate_release_notes: true
fail_on_unmatched_files: true

4 changes: 4 additions & 0 deletions src/guppyscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ lv_style_t GuppyScreen::style_container;
lv_style_t GuppyScreen::style_imgbtn_pressed;
lv_style_t GuppyScreen::style_imgbtn_disabled;
lv_theme_t GuppyScreen::th_new;

#ifndef OS_ANDROID
lv_obj_t *GuppyScreen::screen_saver = NULL;
#endif

std::mutex GuppyScreen::lv_lock;

GuppyScreen::GuppyScreen()
Expand Down

0 comments on commit 8b88d6a

Please sign in to comment.