1 name: "Build NixOS manual"
14 runs-on: ubuntu-latest
15 if: github.repository_owner == 'NixOS'
17 - uses: actions/checkout@v4
19 # pull_request_target checks out the base branch by default
20 ref: refs/pull/${{ github.event.pull_request.number }}/merge
21 - uses: cachix/install-nix-action@v23
23 # explicitly enable sandbox
24 extra_nix_config: sandbox = true
25 - uses: cachix/cachix-action@v12
27 # This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
29 signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
30 - name: Building NixOS manual
31 run: NIX_PATH=nixpkgs=$(pwd) nix-build --option restrict-eval true nixos/release.nix -A manual.x86_64-linux