2020-12-06 00:53:21 +00:00
|
|
|
name: "Build Nixpkgs manual"
|
|
|
|
|
2021-04-24 17:05:17 +00:00
|
|
|
permissions: read-all
|
|
|
|
|
2020-12-06 00:53:21 +00:00
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- 'doc/**'
|
2023-03-04 12:23:26 +00:00
|
|
|
- 'lib/**'
|
2020-12-06 00:53:21 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
nixpkgs:
|
|
|
|
runs-on: ubuntu-latest
|
2021-05-27 00:10:50 +00: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
|
2023-06-19 12:08:45 +00:00
|
|
|
- uses: cachix/install-nix-action@v22
|
2020-12-06 00:53:21 +00:00
|
|
|
with:
|
|
|
|
# explicitly enable sandbox
|
|
|
|
extra_nix_config: sandbox = true
|
2022-10-27 23:30:20 +00:00
|
|
|
- uses: cachix/cachix-action@v12
|
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
|