IntersectMBO / cardano-addresses

Addresses and mnemonic manipulation & derivations
Apache License 2.0
144 stars 46 forks source link

Nix based GHAs for easy reproducibility and cross compilation #258

Open hamishmack opened 3 months ago

hamishmack commented 3 months ago

This reuses our haskell.nix infrastructure through the input-output-hk/devx repository to build GHAs that effectively run

nix develop github:input-output-hk/devx#ghc<ver>-minimal-iog

(as well as JavaScript and Windows cross).

This is distinctly different from running the GHA using input-outpu-hk/actions/base + haskell, in that they use linux and macOS builder only (windows is cross compiled on linux). Re-using the same infrastructure we use to build full nix builds as well, however, building the application in a shell. Thus you effectively use nix to provision the environment, while using usual tools (cabal, ghc, ...) to actually build the software.

This also means, you can trivially debug the situation in CI, by simply sparing the same local shell on you linux (and macOS) machine. It also means we should soon be able to debug windows cross (and javascript cross) topics fairly easily.