2020-12-06 00:53:21 +00:00
|
|
|
name: "Build NixOS manual"
|
|
|
|
|
2021-04-24 17:05:17 +00: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 00:10:50 +00:00
|
|
|
if: github.repository_owner == 'NixOS'
|
2020-12-06 00:53:21 +00:00
|
|
|
steps:
|
2024-06-29 22:01:52 +00: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 11:42:49 +00: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 09:52:11 +00:00
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
2023-06-11 17:29:32 +00: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
|