1 name: "Build NixOS manual"
14 name: nixos-manual-build
15 runs-on: ubuntu-latest
16 if: github.repository_owner == 'NixOS'
18 - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
20 # pull_request_target checks out the base branch by default
21 ref: refs/pull/${{ github.event.pull_request.number }}/merge
22 - uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27
24 # explicitly enable sandbox
25 extra_nix_config: sandbox = true
26 - uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
28 # This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
30 authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
31 - name: Building NixOS manual
32 run: NIX_PATH=nixpkgs=$(pwd) nix-build --option restrict-eval true nixos/release.nix -A manual.x86_64-linux