abouttreesummaryrefslogcommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/make-apk.yml33
1 files changed, 11 insertions, 22 deletions
diff --git a/.github/workflows/make-apk.yml b/.github/workflows/make-apk.yml
index 6b3c47a..2fe3534 100644
--- a/.github/workflows/make-apk.yml
+++ b/.github/workflows/make-apk.yml
@@ -1,4 +1,4 @@
-name: Build debug apk
+name: Make Apk CI
on:
workflow_dispatch:
@@ -6,40 +6,29 @@ on:
pull_request:
jobs:
- Make-apk:
+ Build-Apk:
runs-on: ubuntu-latest
steps:
- name: Install nix
uses: cachix/install-nix-action@v15
with:
nix_path: nixpkgs=channel:nixos-unstable
- - name: Setup nixbuild.net
- uses: nixbuild/nixbuild-action@v9
+ - uses: cachix/cachix-action@v10
with:
- nixbuild_ssh_key: ${{ secrets.nixbuild_ssh_key }}
- - name: Checkout repo
+ 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
- # Hopefully cached.
- - name: Debug certificate
- run: |
- [[ -f _build/debug.keystore ]] ||
- nix-shell ./shell.nix --run 'make debug.keystore'
- - name: Build
- run: |
- store=ssh-ng://eu.nixbuild.net
- result=$(
- nix build --json --eval-store auto --store $store \
- -f ./shell.nix debug-apk \
- | jq -r '.[0].outputs.out'
- )
- nix copy --from $store $result
- mkdir -p _build
- cp $result/*.apk _build
+ - 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: