abouttreesummaryrefslogcommitdiff
path: root/.github/workflows/make-apk.yml
blob: 2fe3534528113fcc39a12bf9c48849b4832e7d9f (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
36
name: Make Apk CI

on:
  workflow_dispatch:
  push:
  pull_request:

jobs:
  Build-Apk:
    runs-on: ubuntu-latest
    steps:
    - name: Install nix
      uses: cachix/install-nix-action@v15
      with:
        nix_path: nixpkgs=channel:nixos-unstable
    - uses: cachix/cachix-action@v10
      with:
        name: julow
        signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
    - name: Checkout Repo
      uses: actions/checkout@v2
    - name: Cache debug certificate
      uses: actions/cache@v2
      with:
        path: _build/debug.keystore
        key: debug-keystore
    - name: Run nix-shell and Make
      uses: ZenithalHourlyRate/nix-shell-action@v4
      with:
        file: shell.nix
        script: make
    - name: Save debug apk
      uses: actions/upload-artifact@v2
      with:
        name: debug apk
        path: _build/*.apk