1 name: "Build NixOS manual v2"
15 name: nixos-manual-build
16 runs-on: ubuntu-latest
17 if: github.repository_owner == 'NixOS'
19 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21 # pull_request_target checks out the base branch by default
22 ref: refs/pull/${{ github.event.pull_request.number }}/merge
23 - uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
25 # explicitly enable sandbox
26 extra_nix_config: sandbox = true
27 - uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
29 # This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
31 authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
32 - name: Building NixOS manual
33 run: NIX_PATH=nixpkgs=$(pwd) nix-build --option restrict-eval true nixos/release.nix -A manual.x86_64-linux