run ci on all .nix files in src #16
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: 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 |