mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2024-11-22 15:23:11 +01:00
0fb7150a06
The new CI script doesn't work on forks. This reverts commitf3aa218de4
. This reverts commit3373c59b90
.
37 lines
849 B
YAML
37 lines
849 B
YAML
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
|