mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2024-11-22 07:13:13 +01:00
Improve CI script
Upgrade nixbuild-action to put back spaces in the workflow name. Improve the script for retrieving the result, thanks to @rickynils.
This commit is contained in:
parent
c093b45c96
commit
f3aa218de4
16
.github/workflows/make-apk.yml
vendored
16
.github/workflows/make-apk.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Build-debug-apk
|
name: Build debug apk
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -14,7 +14,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- name: Setup nixbuild.net
|
- name: Setup nixbuild.net
|
||||||
uses: nixbuild/nixbuild-action@v8
|
uses: nixbuild/nixbuild-action@v9
|
||||||
with:
|
with:
|
||||||
nixbuild_ssh_key: ${{ secrets.nixbuild_ssh_key }}
|
nixbuild_ssh_key: ${{ secrets.nixbuild_ssh_key }}
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
@ -31,11 +31,15 @@ jobs:
|
|||||||
nix-shell ./shell.nix --run 'make debug.keystore'
|
nix-shell ./shell.nix --run 'make debug.keystore'
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
nix build --eval-store auto --store ssh-ng://eu.nixbuild.net \
|
store=ssh-ng://eu.nixbuild.net
|
||||||
-f ./shell.nix debug-apk
|
result=$(
|
||||||
nix build -f ./shell.nix debug-apk
|
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
|
mkdir -p _build
|
||||||
cp result/*.apk _build
|
cp $result/*.apk _build
|
||||||
- name: Save debug apk
|
- name: Save debug apk
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user