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/**'
|
2024-04-11 13:26:46 +02:00
|
|
|
- 'pkgs/tools/nix/nixdoc/**'
|
2020-12-06 01:53:21 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
nixpkgs:
|
2024-08-01 05:28:40 +02:00
|
|
|
name: nixpkgs-manual-build
|
2020-12-06 01:53:21 +01:00
|
|
|
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-09-30 14:02:46 +02:00
|
|
|
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
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-09-30 13:58:38 +02:00
|
|
|
- uses: cachix/install-nix-action@9f70348d77d0422624097c4b7a75563948901306 # v29
|
2020-12-06 01:53:21 +01:00
|
|
|
with:
|
|
|
|
# explicitly enable sandbox
|
|
|
|
extra_nix_config: sandbox = true
|
2024-05-27 13:42:49 +02:00
|
|
|
- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
|
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
|
2024-04-04 11:52:11 +02:00
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
2020-12-06 01:53:21 +01:00
|
|
|
- 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
|