R.swift icon indicating copy to clipboard operation
R.swift copied to clipboard

Automate Homebrew releases, then add them to Readme

Open kylerjensen opened this issue 5 years ago • 5 comments

At our company, we don't use CocoaPods for dependency resolution/management, but we really like R.swift and it would be really cool to have a simple command to install R.swift as a command-line tool on our development and CI machines, namely:

brew install rswift

It shouldn't be too difficult to create Homebrew Formulae for future releases and start shipping them off to homebrew/homebrew-core as another step in the R.swift deploy lifecycle.

Information about building Homebrew formulae can be found here.

kylerjensen avatar Sep 27 '18 06:09 kylerjensen

There actually is a Homebrew formula exactly for this purpose: https://formulae.brew.sh/formula/rswift

@tomasharkema created this formula he didn't publish the 5.0.0.alpha releases yet, but I hope as soon as we have a stable (and fixed the last Xcode 10 issues) he will update this formula!

mac-cain13 avatar Sep 27 '18 06:09 mac-cain13

@mac-cain13 that's great news! Any way we can get that added to the README? I'm sure I'm not the only developer who's wondered about it.

kylerjensen avatar Sep 27 '18 06:09 kylerjensen

I updated the homebrew formula with a --devel option (pointed at 5.0.0.alpha.2) and a -HEAD option. You can install v5.0.0.alpha.2 by running brew install --devel rswift.

kylerjensen avatar Oct 11 '18 22:10 kylerjensen

@Kjens93 thanks for doing that!

Because I mostly use Cocoapods, I always totally forget to keep the formula up to date.

@mac-cain13 what would be the right way to go forward? Would be nice to somehow integrate homebrew version bump in your release process, so we don't forget.

tomasharkema avatar Oct 12 '18 08:10 tomasharkema

Yeah, fine by me to automate the Homebrew release also in fastlane. But would be good to have this in a separate lane so it will not affect the normal release proces if it breaks.

mac-cain13 avatar Nov 28 '18 16:11 mac-cain13