2020-12-06 03:53:21 +03:00
|
|
|
name: "Build Nixpkgs manual"
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- 'doc/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
nixpkgs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
# pull_request_target checks out the base branch by default
|
|
|
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
2021-04-03 09:08:21 +03:00
|
|
|
- uses: cachix/install-nix-action@v13
|
2020-12-06 03:53:21 +03:00
|
|
|
with:
|
|
|
|
# explicitly enable sandbox
|
|
|
|
extra_nix_config: sandbox = true
|
2021-04-03 09:08:21 +03:00
|
|
|
- uses: cachix/cachix-action@v9
|
2020-12-06 03:53:21 +03:00
|
|
|
with:
|
|
|
|
# This cache is for the nixos/nixpkgs manual builds and should not be trusted or used elsewhere.
|
|
|
|
name: nixpkgs-ci
|
|
|
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
|
|
|
- name: Building Nixpkgs manual
|
2021-01-03 04:34:37 +03:00
|
|
|
run: NIX_PATH=nixpkgs=$(pwd) nix-build --option restrict-eval true pkgs/top-level/release.nix -A manual
|