2020-12-06 00:53:21 +00:00
|
|
|
name: "Build Nixpkgs manual"
|
|
|
|
|
2021-04-24 18:05:17 +01:00
|
|
|
permissions: read-all
|
|
|
|
|
2020-12-06 00:53:21 +00:00
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- 'doc/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
nixpkgs:
|
|
|
|
runs-on: ubuntu-latest
|
2021-05-27 01:10:50 +01:00
|
|
|
if: github.repository_owner == 'NixOS'
|
2020-12-06 00:53:21 +00:00
|
|
|
steps:
|
2022-03-01 23:23:02 +00:00
|
|
|
- uses: actions/checkout@v3
|
2020-12-06 00:53:21 +00:00
|
|
|
with:
|
|
|
|
# pull_request_target checks out the base branch by default
|
|
|
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
2022-04-08 00:37:40 +01:00
|
|
|
- uses: cachix/install-nix-action@v17
|
2020-12-06 00:53:21 +00:00
|
|
|
with:
|
|
|
|
# explicitly enable sandbox
|
|
|
|
extra_nix_config: sandbox = true
|
2021-07-25 12:45:43 +01:00
|
|
|
- uses: cachix/cachix-action@v10
|
2020-12-06 00:53:21 +00:00
|
|
|
with:
|
2022-03-13 22:11:17 +00:00
|
|
|
# This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
|
2020-12-06 00:53:21 +00:00
|
|
|
name: nixpkgs-ci
|
|
|
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
|
|
|
- name: Building Nixpkgs manual
|
2021-01-03 01:34:37 +00:00
|
|
|
run: NIX_PATH=nixpkgs=$(pwd) nix-build --option restrict-eval true pkgs/top-level/release.nix -A manual
|