Skip to content

ci: Add PR validation workflow with Magic Nix Cache #1

ci: Add PR validation workflow with Magic Nix Cache

ci: Add PR validation workflow with Magic Nix Cache #1

Workflow file for this run

name: Nix CI
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
nix-ci:
name: Nix CI (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Enable Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Inspect flake metadata
run: nix flake metadata
- name: Run flake checks
run: nix flake check --print-build-logs
- name: Build default package
run: nix build .#default --print-build-logs
- name: Smoke-test CLI
run: |
nix run .#sce -- --help
nix run .#sce -- version