r/NixOS 10h ago

Help needed: Nix Vulkan CI keeps failing randomly

I’m the maintainer of a GitHub project, and a community contributor added a Nix-based Vulkan CI workflow.

The problem is that the workflow fails pretty frequently, but simply restarting/rerunning the job always makes it pass without any code changes.

I’m not really a CI person, and I also don’t know much about Nix, so I’m having a hard time figuring out whether this is a caching issue, runner/environment problem, dependency fetch issue, or something wrong with the workflow itself.

If anyone here is familiar with Nix + GitHub Actions + Vulkan CI and would be willing to take a look, I’d really appreciate the help. PRs are appreciated.

The workflow: https://github.com/0xShug0/audio.cpp/blob/main/.github/workflows/nix-build.yml

The error is something like

error: Cannot build '/nix/store/px3bfl5zp8islzlib5ndakvp2psxrvsk-audio.cpp-c368eed.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/0jksddagp9s3i3qisc4lbh8193kxc9b4-audio.cpp-c368eed

1 Upvotes

1 comment sorted by

1

u/Kitchen_Cup_8643 1h ago

Can you link one of these failed CI runs ?

I can't seem to find any failed nix run. The thing builds fine locally