2021-01-05 17:05:55 +00:00
|
|
|
name: "Build Nixpkgs manual"
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
permissions: read-all
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- 'doc/**'
|
2023-03-08 16:32:21 +00:00
|
|
|
- 'lib/**'
|
2024-04-21 15:54:59 +00:00
|
|
|
- 'pkgs/tools/nix/nixdoc/**'
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
nixpkgs:
|
|
|
|
runs-on: ubuntu-latest
|
2021-05-28 09:39:13 +00:00
|
|
|
if: github.repository_owner == 'NixOS'
|
2021-01-05 17:05:55 +00:00
|
|
|
steps:
|
2024-04-21 15:54:59 +00:00
|
|
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
|
2021-01-05 17:05:55 +00:00
|
|
|
with:
|
|
|
|
# pull_request_target checks out the base branch by default
|
|
|
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
2024-04-21 15:54:59 +00:00
|
|
|
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
|
2021-01-05 17:05:55 +00:00
|
|
|
with:
|
|
|
|
# explicitly enable sandbox
|
|
|
|
extra_nix_config: sandbox = true
|
2024-01-25 14:12:00 +00:00
|
|
|
- uses: cachix/cachix-action@18cf96c7c98e048e10a83abd92116114cd8504be # v14
|
2021-01-05 17:05:55 +00:00
|
|
|
with:
|
2022-03-30 09:31:56 +00:00
|
|
|
# This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
|
2021-01-05 17:05:55 +00:00
|
|
|
name: nixpkgs-ci
|
2024-04-21 15:54:59 +00:00
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
2021-01-05 17:05:55 +00:00
|
|
|
- name: Building Nixpkgs manual
|
2024-01-02 11:29:13 +00:00
|
|
|
run: NIX_PATH=nixpkgs=$(pwd) nix-build --option restrict-eval true pkgs/top-level/release.nix -A manual -A manual.tests
|