-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Support arm64 binary generation #1342
Conversation
d962c82
to
16271cd
Compare
Nice thinking! The deploy process handles the homebrew-tap here: https://github.com/danger/danger-js/blob/main/scripts/create-homebrew-tap-pr.sh And https://github.com/danger/danger-js/blob/main/.release-it.json#L9 will need to be tweaked to generate both That should be it though IMO |
Hello! @orta |
Hi! @orta Any feedbacks and opinions are welcome :) |
Alright, well this looks great to me - I was a little wary because ~250 people have write access to the org, but they already have write access to the homebrew parts of it anyway and so changing just this part of the process doesn't actually change anything fundementally. So, I've given it all a once over and it looks good to me - later this evening I'll try ship the latest build of danger with it- thanks! |
OK, so there's a lot going on here - I'm going to need to tweak this a bit to let the npm parts of the process work locally (because I don't want everyone having access to deploy to npm) on my device, and then the github release + homebrew stuff happen in GH actions |
That said, thanks a lot - this must have been quite time consuming, and probably required learning a bunch of new things! |
Alright, I've got this process up and running: It looks correct to me! |
Thanks! I was keeping an intel mac around (I use linux as my main daily machine) specifically for Danger deploys, this means a deploy for me is now trivial and doesn't require pulling out an old computer and doing a bunch of work. |
I'm glad that I could alleviate your loads by my commit. Now I confirmed |
What was the problem?
danger-swift
users (especially who use Apple silicon mac) get errors when they use danger in their project.Before fix
What I did
After fix
Benefit
danger
by onlybrew install danger/tap/danger-swift
command as before without any concerns.Next actions
Actions Secret
andDeploy Key
keygen
on your terminal. Leave passphrase empty.homebrew-tap
repository.danger-js
repository. Key name must be HOMEBREW_TAP_DEPLOY_SECRET_KEY.Release operator has to runyarn package:x64
andyarn package:arm64
when releasing new version from now on. And publish both.$ gh workflow run .github/workflows/release.yml version_digit={major | minor | patch}
(select update version type) on your terminal if you have GitHub CLI. Or execute on GitHub Actions dashboard page.