cartesi / machine-emulator

The off-chain implementation of the Cartesi Machine
GNU Lesser General Public License v3.0
58 stars 32 forks source link

Publish patch that adds generated files (uarch-pristine-hash.c etc) to source tree #243

Closed diegonehab closed 1 month ago

diegonehab commented 1 month ago

As we move towards providing packages for cartesi-machine-emulator for multiple platforms, we should make the job of package maintainers as easy as possible. One difficulty in building our emulator is its dependency on uarch.bin, which itself depends on a special toolchain we distribute inside a Docker image.

Instead of forcing package maintainers to deal with these issues, this PR introduces a new target, create-generated-files-patch that produces a patch add-generated-files.diff that, when applied to the source tree, introduces the files needed to build the emulator.

It also includes changes to CI that cause add-generated-files.diff file to be published as an artifact on tagged releases.