Skip to content

10 - Add nix package support #1

10 - Add nix package support

10 - Add nix package support #1

Workflow file for this run

name: Nix CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
checks-build:
runs-on: ubuntu-24.04
permissions:
contents: write
actions: write
steps:
- uses: actions/checkout@v4
- uses: nixbuild/nix-quick-install-action@v28
- name: Restore and save Nix store
uses: ./.
with:
with:
# restore and save a cache using this key
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }}

Check failure on line 26 in .github/workflows/nix-ci.yml

View workflow run for this annotation

GitHub Actions / Nix CI

Invalid workflow file

The workflow is not valid. .github/workflows/nix-ci.yml (Line: 26, Col: 13): A mapping was not expected
# if there's no cache hit, restore a cache by this prefix
restore-prefixes-first-match: nix-${{ runner.os }}-
# collect garbage until Nix store size (in bytes) is at most this number
# before trying to save a new cache
gc-max-store-size-linux: 1073741824
# do purge caches
purge: true
# purge all versions of the cache
purge-prefixes: cache-${{ runner.os }}-
# created more than this number of seconds ago relative to the start of the `Post Restore` phase
purge-created: 0
# except the version with the `primary-key`, if it exists
purge-primary-key: never
- run: nix build