mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
workflows/eval.misc: run tasks in parallel
Both `nix flake check` and `nix-env` are single-threaded, so no reason
to serialize their calls and waste time.
This brings down the runtime for this job from ~1:51 to ~1:27 in my
tests.
(cherry picked from commit 3d9cb9f355)
This commit is contained in:
committed by
github-actions[bot]
parent
b575f3d62f
commit
450bb67e89
11
.github/workflows/eval.yml
vendored
11
.github/workflows/eval.yml
vendored
@@ -354,9 +354,10 @@ jobs:
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@fc6e360bedc9ee72d75e701397f0bb30dce77568 # v31
|
||||
|
||||
- name: Ensure flake outputs on all systems still evaluate
|
||||
run: nix flake check --all-systems --no-build './nixpkgs/untrusted?shallow=1'
|
||||
|
||||
- name: Query nixpkgs with aliases enabled to check for basic syntax errors
|
||||
- name: Run misc eval tasks in parallel
|
||||
run: |
|
||||
time nix-env -I ./nixpkgs/untrusted -f ./nixpkgs/untrusted -qa '*' --option restrict-eval true --option allow-import-from-derivation false >/dev/null
|
||||
# Ensure flake outputs on all systems still evaluate
|
||||
nix flake check --all-systems --no-build './nixpkgs/untrusted?shallow=1' &
|
||||
# Query nixpkgs with aliases enabled to check for basic syntax errors
|
||||
nix-env -I ./nixpkgs/untrusted -f ./nixpkgs/untrusted -qa '*' --option restrict-eval true --option allow-import-from-derivation false >/dev/null &
|
||||
wait
|
||||
|
||||
Reference in New Issue
Block a user