abouttreesummaryrefslogcommitdiff
path: root/.github/workflows/make-apk.yml
blob: 168f3d31f6f5f634cb2ccd7260ec76cbae46bbbb (plain)
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
name: Make Apk CI

on:
  workflow_dispatch:
  push:
  pull_request:

jobs:
  Build-Apk:
    runs-on: ubuntu-20.04
    steps:
    - name: Install external dependencies
      run: |
        # Dirty: Get a more recent version of fontforge
        sudo sed -i 's/focal/impish/g' /etc/apt/sources.list
        sudo apt-get update -y
        sudo apt-get install -y fontforge
    - uses: actions/setup-java@v2
      with:
        distribution: 'zulu' # See 'Supported distributions' for available options
        java-version: '11'
    - name: Checkout repo
      uses: actions/checkout@v2
    - name: Cache debug certificate
      uses: actions/cache@v2
      with:
        path: _build/debug.keystore
        key: debug-keystore
    - name: Build
      run: make
    - name: Save debug apk
      uses: actions/upload-artifact@v2
      with:
        name: debug apk
        path: _build/*.apk