Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix based GHAs for easy reproducibility and cross compilation. #386

Draft
wants to merge 39 commits into
base: master
Choose a base branch
from

Conversation

angerman
Copy link
Collaborator

@angerman angerman commented Apr 18, 2023

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.

@angerman angerman marked this pull request as ready for review April 27, 2023 11:40
@angerman angerman changed the title DO NOT MERGE: Experimental usage of iog/devx for GHA. Nix based GHAs for easy reproducibility and cross compilation. Apr 27, 2023
@angerman
Copy link
Collaborator Author

One thing, which the PR still lacks, is windows cross -> test artifacts on windows. Using upload/download artifacts.

But this should give a good first impression of the actions/devx workflow.

@lehins lehins marked this pull request as draft November 25, 2024 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants