2020-12-06 00:53:21 +00:00
|
|
|
name: "Build NixOS manual"
|
|
|
|
|
2021-04-24 18:05:17 +01:00
|
|
|
permissions: read-all
|
|
|
|
|
2020-12-06 00:53:21 +00:00
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- 'nixos/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
nixos:
|
|
|
|
runs-on: ubuntu-latest
|
2021-05-27 01:10:50 +01:00
|
|
|
if: github.repository_owner == 'NixOS'
|
2020-12-06 00:53:21 +00:00
|
|
|
steps:
|
2024-06-29 23:01:52 +01:00
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
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
|
2024-03-11 11:39:15 +00:00
|
|
|
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
|
2020-12-06 00:53:21 +00:00
|
|
|
with:
|
|
|
|
# explicitly enable sandbox
|
|
|
|
extra_nix_config: sandbox = true
|
2024-05-27 12:42:49 +01:00
|
|
|
- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
|
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
|
2024-04-04 10:52:11 +01:00
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
2023-06-11 18:29:32 +01:00
|
|
|
- name: Building NixOS manual
|
2021-01-03 01:34:37 +00:00
|
|
|
run: NIX_PATH=nixpkgs=$(pwd) nix-build --option restrict-eval true nixos/release.nix -A manual.x86_64-linux
|