2020-12-06 01:53:21 +01:00
|
|
|
name: "Build NixOS 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:
|
|
|
|
- 'nixos/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
nixos:
|
|
|
|
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:
|
2022-03-02 00:23:02 +01:00
|
|
|
- uses: actions/checkout@v3
|
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
|
2022-10-13 01:12:03 +02:00
|
|
|
- uses: cachix/install-nix-action@v18
|
2020-12-06 01:53:21 +01:00
|
|
|
with:
|
|
|
|
# explicitly enable sandbox
|
|
|
|
extra_nix_config: sandbox = true
|
2022-10-28 01:30:20 +02:00
|
|
|
- uses: cachix/cachix-action@v12
|
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 }}'
|
2022-09-03 16:35:28 +02:00
|
|
|
- name: Building NixOS manual with DocBook options
|
2021-01-03 02:34:37 +01:00
|
|
|
run: NIX_PATH=nixpkgs=$(pwd) nix-build --option restrict-eval true nixos/release.nix -A manual.x86_64-linux
|
2022-09-03 16:35:28 +02:00
|
|
|
- name: Building NixOS manual with Markdown options
|
|
|
|
run: |
|
|
|
|
export NIX_PATH=nixpkgs=$(pwd)
|
|
|
|
nix-build \
|
|
|
|
--option restrict-eval true \
|
|
|
|
--arg configuration '{ documentation.nixos.options.allowDocBook = false; }' \
|
|
|
|
nixos/release.nix \
|
|
|
|
-A manual.x86_64-linux
|