1 name: "Build NixOS manual"
14 runs-on: ubuntu-latest
15 if: github.repository_owner == 'NixOS'
17 - uses: actions/checkout@v3
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@v20
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 with DocBook options
31 run: NIX_PATH=nixpkgs=$(pwd) nix-build --option restrict-eval true nixos/release.nix -A manual.x86_64-linux
32 - name: Building NixOS manual with Markdown options
34 export NIX_PATH=nixpkgs=$(pwd)
36 --option restrict-eval true \
37 --arg configuration '{ documentation.nixos.options.allowDocBook = false; }' \
39 -A manual.x86_64-linux