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