nim-lang / atlas

The Atlas Package cloner. It manages an isolated workspace that contains projects and dependencies.
MIT License
99 stars 14 forks source link

build universal macos and linux arm / arm64 binaries #63

Closed elcritch closed 10 months ago

elcritch commented 1 year ago

Adds a buildRelease task to config.nims for handling the cross xc builds. I tested both macos, linux, and windows builds to ensure they build the correct arch. I did not run them on all the platforms.

I updated binaries.yml in the CI, but it is untested. Very likely to have things to fix, but the general structure should now be correct.

Araq commented 1 year ago

What's the point? Nim ships with atlas and to get a new atlas use nimble install atlas. Which needs a packages.json registration.

elcritch commented 1 year ago

What's the point?

To enable bootstrapping and replacing something like choosenim.

Nim ships with atlas and to get a new atlas use nimble install atlas. Which needs a packages.json registration.

Nim doesn't provide pre-built binaries for ARM. I'm not sure this would be the best solution, but it'd be nice to have a solution.