jedisct1 / libsodium

A modern, portable, easy to use crypto library.
https://libsodium.org
Other
12.06k stars 1.72k forks source link

Build as many binaries as possible for distribution #1332

Closed js-9 closed 7 months ago

js-9 commented 7 months ago

I needed a bunch of different binaries for a project but couldn't find them from any official source, so I made a github workflow to build as many of them as possible. Results can be found here: https://github.com/js-9/libsodium/actions/runs/6838395872

Currently builds:

jedisct1 commented 7 months ago

Hi!

Proper packages for libsodium are available for available for the vast majority of operating systems and linux distributions. They are guaranteed to install the files at the correct place, be compatible with the currently installed libraries, etc. It's also easy to recompile from source.

The result of this script wouldn't have anything special or official, it's just files built using GitHub actions, that aren't guaranteed to work everywhere. Plus, it's just a subset of the architectures libsodium runs on.

Since your use case seems to be .NET projects, there's already a NuGET package for libsodium, that is kept up to date, and tries to match the requirements for the targeted .NET versions. It's used by NSec and other bindings, so it seems to work :)

js-9 commented 7 months ago

Looks to me like that nuget package doesn't contain android support, for example. Anyways, it was an "in case you find this useful" thing, and it's easy enough to add other architectures and systems as needed.

jedisct1 commented 7 months ago

We should add Android builds to the NuGET package, then :)