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:
|
2023-11-28 04:28:58 +01:00
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
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-01-18 17:08:54 +01:00
|
|
|
- uses: cachix/install-nix-action@6004951b182f8860210c8d6f0d808ec5b1a33d28 # v25
|
2020-12-06 01:53:21 +01:00
|
|
|
with:
|
|
|
|
# explicitly enable sandbox
|
|
|
|
extra_nix_config: sandbox = true
|
2024-01-18 17:10:26 +01:00
|
|
|
- uses: cachix/cachix-action@18cf96c7c98e048e10a83abd92116114cd8504be # v14
|
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 }}'
|
2023-06-11 19:29:32 +02:00
|
|
|
- name: Building NixOS manual
|
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
|