-
-
Notifications
You must be signed in to change notification settings - Fork 51
37 lines (29 loc) · 1.17 KB
/
build-android.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build for Android
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set env
run: if grep -Fxq "devel" cmd/go2tv/version.txt;then echo "GO2TV_VERSION=$(cat cmd/go2tv/version.txt)";else echo "GO2TV_VERSION=v$(cat cmd/go2tv/version.txt)";fi >> $GITHUB_ENV
- uses: WillAbides/setup-go-faster@v1.7.0
id: setup-go-faster
with:
go-version: "*"
- name: Install fyne
run: go install fyne.io/fyne/v2/cmd/fyne@latest
- name: Download Android SDK
run: wget https://dl.google.com/android/repository/android-ndk-r23b-linux.zip && unzip android-ndk-r23b-linux.zip
- name: Package (Android)
run: APATH=$(readlink -e android-ndk-r23b) && cd cmd/go2tv && GO386='softfloat' ANDROID_NDK_HOME=$APATH fyne package -os android -name Go2TV -appID com.alexballas.go2tv -icon ../../assets/go2tv-icon-android.png && mv Go2TV.apk ../../
- uses: actions/upload-artifact@v2
with:
name: go2tv_${{ env.GO2TV_VERSION }}_android
path: |
LICENSE
README.md
Go2TV.apk
retention-days: 2