Skip to content

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
Copy link

@noelportillo noelportillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep your eyes open

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.

3 participants