xyproto / cxx

:electric_plug: Configuration-free utility for building, testing and packaging executables written in C++. Can auto-detect compilation flags based on includes, via the package system and pkg-config.
BSD 3-Clause "New" or "Revised" License
121 stars 5 forks source link

add Github Action for Cosmopolitan Libc build #8

Open ahgamut opened 4 months ago

ahgamut commented 4 months ago

This PR adds a Github Actions workflow to build cxx from source with Cosmopolitan Libc with every release. The resulting binary should work on x86_64 (Linux/BSDs/Windows/MacOS), and aarch64 (Linux/MacOS) as per the Cosmopolitan v3.3.3 README.

An example cxx binary is available here: https://github.com/ahgamut/cxx/releases/tag/untagged-41b8dd7f7a169bcd65bf download and chmod +x (or rename to cxx.exe on Windows) to run the executable from the command-line.

xyproto commented 4 months ago

Thanks for the PR.

How is the dependency on scons solved, though?

ahgamut commented 4 months ago

Hmm, I guess for now scons will have to be available on the user's $PATH, although we could just build scons with Cosmopolitan Libc as well.