using homebrew provided github actions for generating bottles #2006
Unanswered
ipatch
asked this question in
Tap maintenance and brew development
Replies: 1 comment 2 replies
-
Your use case isn't really what we aim for with our - name: Post cleanup
if: always()
run: brew test-bot --only-cleanup-after Also setting |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i've been working on updating the homebrew-freecad tap to use github actions most notably the standard
tests.yml
and thepublish.yml
when creating a new tap / repo. i feel like have a somewhat decent understanding of what i'm doing but still have some questions that i do not know the answers too.it's been great to mess around with github actions and homebrew more from a tap maintainer perspective and not blowing up an existing repo 🤞.
i was able to build bottles for these OS's using virtual machines i setup an extra macbook i have. and have each VM acting as a self-hosted runner as github only provides a catalina build environment.
so using the
tests.yml
along withbrew test-bot
i built swig for all mentioned OS's. and now i checked in another file ie. python and am experimenting with it.however there are 2 things that are presently blocking me from publishing my python bottles.
python.rb
within my new branch. then open a PR against my pg repo/homebrew tap. i can open a PR and fire off the jobs to be run on my self-hosted runners.however, i'm presently seeing this issue, which is something i didn't encounter when working with the swig formula.
it seems the existing homebrew install on these virtual machines is causing issues for these self-hosted runners.
i've worked around this issue by uninstalling homebrew, and then reinstalling hombrew globally ie. within
/usr/local
using the same user that i'm using to start therun.sh
github actions runner script. however, after running through one action / workflow, and then attempting another i begin to see those errors mentioned the log, ie.and the second 2nd issue i've run into, is, if i have a PR open, and then submit a follow commit, ie. i opened a PR creating the python formulae file for my custom homebrew tap, and then i decide to update amend the original file i checked in, so my PR is composed of 2 commit now, the
publish.yml
action will fail due to agit cherry-pick
issue with not being able to merge the commits.this error happens after the bottles have been successfully built and then the
pr-pull
label is added to the PR request to publish the bottles.is this the intended behavior of this publish workflow? or is there a more elegant way to handle these things?
any & all help is greatly appreciated. 🙏
Beta Was this translation helpful? Give feedback.
All reactions