From 450bb67e89d0151f617b998c9e91793de89f4a77 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Wed, 20 Aug 2025 13:10:24 +0200 Subject: [PATCH] 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 3d9cb9f3553b74d5fbbaa467dc96c6994daf95d0) --- .github/workflows/eval.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/eval.yml b/.github/workflows/eval.yml index 7efa71913ac7..c75398dde45e 100644 --- a/.github/workflows/eval.yml +++ b/.github/workflows/eval.yml @@ -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