pokemmo-installer: init at 1.4.8 (#341389)
[NixPkgs.git] / .github / workflows / manual-nixpkgs.yml
blob00e84854495a65f456e43154042042ade5cd9723
1 name: "Build Nixpkgs manual"
3 permissions: read-all
5 on:
6   pull_request_target:
7     branches:
8       - master
9     paths:
10       - 'doc/**'
11       - 'lib/**'
12       - 'pkgs/tools/nix/nixdoc/**'
14 jobs:
15   nixpkgs:
16     name: nixpkgs-manual-build
17     runs-on: ubuntu-latest
18     if: github.repository_owner == 'NixOS'
19     steps:
20       - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
21         with:
22           # pull_request_target checks out the base branch by default
23           ref: refs/pull/${{ github.event.pull_request.number }}/merge
24       - uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27
25         with:
26           # explicitly enable sandbox
27           extra_nix_config: sandbox = true
28       - uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
29         with:
30           # This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
31           name: nixpkgs-ci
32           authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
33       - name: Building Nixpkgs manual
34         run: NIX_PATH=nixpkgs=$(pwd) nix-build --option restrict-eval true pkgs/top-level/release.nix -A manual -A manual.tests