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

Add update-formula Github action #12

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

paulcadman
Copy link
Collaborator

⚠️ This PR depends on #11

This PR adds a Github action to automatically update the Juvix homebrew formula.

This action can only be triggered manually.

When triggered, the new Juvix version and release revision must be specified. The action then uses brew bump-formula-pr to edit the formula and it creates a new PR with the changes.

We install GHC using the binary release directly because installation of
GHC via ghcup or via stack in the formula context is not reliable.

Specifially the GHC installation with ghcup or stack
fails *sometimes* (with about 1/5 frequency) when trying to create a
temporary directory within the temporary HOME directory used by the
formula build.

The GHC installer works reliably when invoked directly from the bindist
In particular we were not specifying a git ref for the stable version
the git ref of the `main` branch was always used. This is now fixed by
specifying the `revision` field on the juvix git URL.
This action can only be triggered manually.

When triggered, the new Juvix version and release revision must be
specified. The action then uses `brew bump-formula-pr` to edit the
formula and it creates a new PR with the changes.
@paulcadman paulcadman self-assigned this Jun 16, 2023
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.

1 participant