abouttreesummaryrefslogcommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJules Aguillon2022-03-27 16:08:26 +0200
committerJules Aguillon2022-03-27 16:26:58 +0200
commited2dea9630df9a8470a7fbe032cd47bc3259844f (patch)
treebe59e969426bba6dcbec69d44a0c5e1fba8b7219 /.github/workflows
parent67487d0ef09f6ed0a13f848a2a3eb04022ddcbf6 (diff)
downloadunexpected-keyboard-ed2dea9630df9a8470a7fbe032cd47bc3259844f.tar.gz
unexpected-keyboard-ed2dea9630df9a8470a7fbe032cd47bc3259844f.zip
CI: Install fontforge with Nix
And cache the nix store.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/make-apk.yml17
1 files changed, 11 insertions, 6 deletions
diff --git a/.github/workflows/make-apk.yml b/.github/workflows/make-apk.yml
index 168f3d3..fa097b2 100644
--- a/.github/workflows/make-apk.yml
+++ b/.github/workflows/make-apk.yml
@@ -7,14 +7,19 @@ on:
jobs:
Build-Apk:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-latest
steps:
+ - name: Install nix
+ uses: cachix/install-nix-action@v15
+ with:
+ nix_path: nixpkgs=channel:nixos-unstable
+ - name: Cache Nix store
+ uses: actions/cache@v2
+ with:
+ path: /nix
+ key: nix-store
- name: Install external dependencies
- run: |
- # Dirty: Get a more recent version of fontforge
- sudo sed -i 's/focal/impish/g' /etc/apt/sources.list
- sudo apt-get update -y
- sudo apt-get install -y fontforge
+ run: nix-env -f '<nixpkgs>' -i fontforge
- uses: actions/setup-java@v2
with:
distribution: 'zulu' # See 'Supported distributions' for available options