Skip to content

Commit 7ad3c88

Browse files
authored
workflows/eval-aliases: split from eval (#406113)
2 parents 944b94d + 3f004ac commit 7ad3c88

File tree

2 files changed

+33
-23
lines changed

2 files changed

+33
-23
lines changed

.github/workflows/eval-aliases.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Eval aliases
2+
3+
on:
4+
pull_request_target:
5+
6+
permissions: {}
7+
8+
jobs:
9+
get-merge-commit:
10+
uses: ./.github/workflows/get-merge-commit.yml
11+
12+
eval-aliases:
13+
name: Eval nixpkgs with aliases enabled
14+
runs-on: ubuntu-24.04
15+
needs: [ get-merge-commit ]
16+
steps:
17+
- name: Check out the PR at the test merge commit
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19+
with:
20+
ref: ${{ needs.get-merge-commit.outputs.mergedSha }}
21+
path: nixpkgs
22+
23+
- name: Install Nix
24+
uses: cachix/install-nix-action@526118121621777ccd86f79b04685a9319637641 # v31
25+
with:
26+
extra_nix_config: sandbox = true
27+
28+
- name: Ensure flake outputs on all systems still evaluate
29+
run: nix --experimental-features 'nix-command flakes' flake check --all-systems --no-build ./nixpkgs
30+
31+
- name: Query nixpkgs with aliases enabled to check for basic syntax errors
32+
run: |
33+
time nix-env -I ./nixpkgs -f ./nixpkgs -qa '*' --option restrict-eval true --option allow-import-from-derivation false >/dev/null

.github/workflows/eval.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -59,29 +59,6 @@ jobs:
5959
name: paths
6060
path: result/*
6161

62-
eval-aliases:
63-
name: Eval nixpkgs with aliases enabled
64-
runs-on: ubuntu-24.04
65-
needs: [ get-merge-commit ]
66-
steps:
67-
- name: Check out the PR at the test merge commit
68-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
69-
with:
70-
ref: ${{ needs.get-merge-commit.outputs.mergedSha }}
71-
path: nixpkgs
72-
73-
- name: Install Nix
74-
uses: cachix/install-nix-action@526118121621777ccd86f79b04685a9319637641 # v31
75-
with:
76-
extra_nix_config: sandbox = true
77-
78-
- name: Ensure flake outputs on all systems still evaluate
79-
run: nix --experimental-features 'nix-command flakes' flake check --all-systems --no-build ./nixpkgs
80-
81-
- name: Query nixpkgs with aliases enabled to check for basic syntax errors
82-
run: |
83-
time nix-env -I ./nixpkgs -f ./nixpkgs -qa '*' --option restrict-eval true --option allow-import-from-derivation false >/dev/null
84-
8562
outpaths:
8663
name: Outpaths
8764
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)