Cache nix store #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |