Recently, Steven asked Greg Hartman to configure the APEX repository to run on GitHub Codespaces.
Greg did, and of course the first thing he tried was building the PDF. It failed.
The reason it failed is that Codespaces is currently incapable of building 3D Asymptote to PDF, because typical builds of Asymptote assume the presence of a GPU.
On the Asymptote forums, I got a recommendation from John Bowman: the most recent version of Asymptote (3.12 or later) includes Vulcan support.
I know nothing about Vulcan (aside from Spock et al), but word is that if Asymptote 3.12 is compiled with Vulcan libraries, running Asymptote with the --offscreen flag should work in an environment like codespaces.
I owe you a pull request that replaces the '-iconify' flag with '-offscreen' (a back to the future pull request, it seems). This should have no effect on anyone building locally on Linux, it should resolve the bug on Windows (anyone without a discrete graphics card gets a black rectangle for every diagram), and it sets up codespaces to work in the future.
For Oscar: do you have the ability to compile a particular version of Asymptote with an optional library within the Docker container used by codespaces? Version 3.12 is the latest release, so it won't yet be bundled with any TeX distributions. Download options are a .tgz of the source code, or .rpm.