Skip to content

run ci on all .nix files in src #16

run ci on all .nix files in src

run ci on all .nix files in src #16

Workflow file for this run

name: check
on:
workflow_dispatch:
push:
paths:
- "src/**/*.nix"
- "flake.lock"
- "flake.nix"
- ".sops.yml"
- ".github/workflows/build.yml"
pull_request:
paths:
- "src/**/*.nix"
- "flake.lock"
- "flake.nix"
- ".sops.yml"
- ".github/workflows/build.yml"
jobs:
check:
strategy:
# always run all platforms disregarding failure
fail-fast: false
matrix:
# macos-14 is aarch64-darwin (silicone)
os: [ubuntu-latest, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
# install nix
- uses: DeterminateSystems/nix-installer-action@main
# cache packages
- uses: DeterminateSystems/magic-nix-cache-action@main
# info on flake dependencies
- uses: DeterminateSystems/flake-checker-action@main
env:
FLAKE_CHECKER_NO_TELEMETRY: true
# validate all outputs
- name: Validate flake outputs
# building uses too much storage (more than available on GitHub runners)
run: nix flake check --no-build --show-trace