Skip to content

Cache nix store

Cache nix store #2

Workflow file for this run

name: "Build PDF"
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache Nix
uses: actions/cache@v3.3.0
with:
key: ${{ hashfiles('flake.nix') }}
path: ~/nix
- run: nix --store ~/nix build '.#nactl' --out-link nactl.pdf
- run: nix --store ~/nix build '.#kactl' --out-link kactl.pdf
- run: nix --store ~/nix build '.#nactl-complete' --out-link nactl-complete.pdf
- uses: actions/upload-artifact@v3
with:
name: PDFs
path: |
nactl.pdf
kactl.pdf
nactl-complete.pdf