ci: Add PR validation workflow with Magic Nix Cache #1
Workflow file for this run
This file contains hidden or 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: 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 |