DRY in the CI config
DRY in the CI config

* Define the build and test scripts once instead of repeating them
* Don't use cross with OSX.  We no longer need it.

nix-rust/nix,nix-rust/nix,asomers/nix,asomers/nix