2022-03-24 18:42:44 +01:00
|
|
|
name: Make Apk CI
|
2022-02-14 00:42:41 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
2022-03-24 18:42:44 +01:00
|
|
|
Build-Apk:
|
2022-02-14 00:42:41 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Install nix
|
|
|
|
uses: cachix/install-nix-action@v15
|
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2022-03-24 18:42:44 +01:00
|
|
|
- uses: cachix/cachix-action@v10
|
2022-02-14 00:42:41 +01:00
|
|
|
with:
|
2022-03-24 18:42:44 +01:00
|
|
|
name: julow
|
|
|
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
|
|
|
- name: Checkout Repo
|
2022-02-14 00:42:41 +01:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Cache debug certificate
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: _build/debug.keystore
|
|
|
|
key: debug-keystore
|
2022-03-24 18:42:44 +01:00
|
|
|
- name: Run nix-shell and Make
|
|
|
|
uses: ZenithalHourlyRate/nix-shell-action@v4
|
|
|
|
with:
|
|
|
|
file: shell.nix
|
|
|
|
script: make
|
2022-02-14 00:42:41 +01:00
|
|
|
- name: Save debug apk
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: debug apk
|
|
|
|
path: _build/*.apk
|