mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 02:10:27 +08:00
This makes checking out the nixpkgs repo even more consistent and almost
forces us to use the trusted/untrusted path pattern.
(cherry picked from commit 0e1c284b13)
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
name: "Build Nixpkgs manual v2"
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/manual-nixpkgs-v2.yml
|
|
pull_request_target:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'doc/**'
|
|
- 'lib/**'
|
|
- 'pkgs/by-name/ni/nixdoc/**'
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
nixpkgs:
|
|
name: nixpkgs-manual-build
|
|
runs-on: ubuntu-24.04-arm
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
sparse-checkout: .github/actions
|
|
- name: Check if the PR can be merged and checkout the merge commit
|
|
uses: ./.github/actions/get-merge-commit
|
|
with:
|
|
merged-as-untrusted: true
|
|
|
|
- uses: cachix/install-nix-action@526118121621777ccd86f79b04685a9319637641 # v31
|
|
with:
|
|
extra_nix_config: sandbox = true
|
|
|
|
- uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
|
|
with:
|
|
# This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
|
|
name: nixpkgs-ci
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
- name: Building Nixpkgs manual
|
|
run: NIX_PATH=nixpkgs=$(pwd)/untrusted nix-build --option restrict-eval true untrusted/ci -A manual-nixpkgs -A manual-nixpkgs-tests
|