2024-10-26 13:23:06 +00:00
|
|
|
name: "Build NixOS manual v2"
|
2020-12-06 00:53:21 +00:00
|
|
|
|
2024-10-26 13:03:37 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2021-04-24 17:05:17 +00:00
|
|
|
|
2020-12-06 00:53:21 +00:00
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- 'nixos/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
nixos:
|
2024-08-01 03:28:40 +00:00
|
|
|
name: nixos-manual-build
|
2020-12-06 00:53:21 +00:00
|
|
|
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-10-28 11:50:56 +00:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
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-10-07 11:17:58 +00:00
|
|
|
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
|
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
|