BlockstreamResearch / rust-simplicity

Creative Commons Zero v1.0 Universal
58 stars 12 forks source link

Easy CI #163

Closed uncomputable closed 1 year ago

uncomputable commented 1 year ago

This is the second part to #148 where we copy the CI infrastructure from rust-bitcoin.

We use a script at contrib/test.sh to run all our checks. The Github yml files simply set up a machine and run the script with certain arguments. This means that there is one job for each architecture + rust version.

Having a bash script should make it easier to run CI locally.

I enabled rustdoc tests because they were already part of the script. It was easy to fix the existing errors and this additional check shouldn't slow us down.

uncomputable commented 1 year ago

We need to introduce lockfiles to this repo and add a few lines from https://github.com/rust-bitcoin/rust-bitcoin/blob/master/contrib/test.sh.

uncomputable commented 1 year ago

I will redo this in nix, possibly using code from https://github.com/apoelstra/local-nix-ci.