673 Commits

Author SHA1 Message Date
Bo Anderson
559336c771
Enable Ruby 3 for HOMEBREW_DEVELOPER 2023-11-20 20:04:18 +00:00
Bo Anderson
508fc2a0e3
workflows/doctor: use brew determine-test-runners 2023-11-17 02:11:01 +00:00
dependabot[bot]
f68654a77e
build(deps): bump actions/github-script from 6 to 7
Bumps [actions/github-script](https://github.com/actions/github-script) from 6 to 7.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-14 18:08:02 +00:00
BrewTestBot
4d5eedcd4d
triage-issues.yml: update to match main configuration 2023-11-14 12:35:36 +00:00
Bo Anderson
8a90d829e2
workflows/docs: bump rubydoc test Ruby 2023-11-07 15:20:29 +00:00
BrewTestBot
df87dfba1e
Update maintainers.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2023-11-06 00:06:07 +00:00
Bo Anderson
2aa12893b0
Support Bootsnap in Ruby 3 2023-10-30 18:57:50 +00:00
Bo Anderson
6932c6568f
workflows: replace hub with gh 2023-10-06 01:52:58 +01:00
Bo Anderson
e91dc6f6dc
workflows/tests: split gem cache per OS version 2023-10-05 12:35:21 +01:00
Mike McQuaid
5c5ac49a39
More Homebrew .pkg improvements
- test on more macOS versions and improve the test names
- add a more resilient and less disruptive version of changing `git`'s
 `safe.directory` configuration
2023-10-04 18:32:08 +01:00
Mike McQuaid
9ee15e02a3
workflows/pkg-installer: fix filename.
This intermediate state got missed during a previous refactoring PR.
2023-10-04 15:34:04 +01:00
Mike McQuaid
c95a26b917
Improve building Homebrew*.pkg
- split jobs into build/test/deploy
- test package on both macOS Intel and Apple Silicon
- cleanup some argument handling
- use `HOMEBREW_MACOS_OLDEST_SUPPORTED` naming to be consistent with
  `brew.sh`
- note in `brew.sh` that `Distribution.xml` also needs updated (and do
  so)
- various other little bits of style cleanup
2023-10-04 10:18:27 +01:00
Mike McQuaid
a94ff572f7
workflows/build-pkg: tweak some variables.
- instead of setting a static `PKG_KEYCHAIN_PASSWORD` secret, generate
  a random password from `openssl rand` instead.
- use `PKG_APPLE_ID_EMAIL` which makes the fact it's an email a bit
  more obvious. I've created this new secret already and will delete the
  old one after this is merged.
- bump the latest supported version of macOS
2023-10-02 16:41:31 +01:00
Bo Anderson
71f558229a
Test on Ruby 3.1 2023-09-29 04:46:16 +01:00
Bo Anderson
3b1c171184
Further split up Gemfile into groups 2023-09-27 17:33:44 +01:00
Bo Anderson
582049454f
vendor/bundle/ruby: cleanup unneeded files 2023-09-26 18:39:57 +01:00
dependabot[bot]
39d07d2159
build(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 18:22:16 +00:00
Issy Long
210b678caf
The test task already runs build, so no need for it twice 2023-09-01 01:12:34 +01:00
Issy Long
c18980d20d
Run the docs site's broken link checker in the docs linting CI job
- We had `rake test` as a task, but we never actually ran it in CI or
  anywhere before building the site.
- The `html-proofer` gem
  [only supports Ruby 3.1](https://github.com/gjtorikian/html-proofer/blob/main/html-proofer.gemspec#L20),
  so I bumped the linting job to use Ruby 3.1 across the board.
- This will make things slower (or maybe it's taking ages because of my
  dodgy hotel internet connection), maybe we should only run it on a
  schedule as a separate job?
- Fixes https://github.com/Homebrew/brew/issues/ 15908.
2023-09-01 01:01:01 +01:00
Mike McQuaid
298003b181
workflows/tests: workaround GitHub Actions python issues.
As-is there's a Python installed but not properly linked which breaks
anything that depends on Python being installed on macOS e.g.
Subversion.
2023-08-26 12:25:22 +01:00
Mike McQuaid
16feec525f
tests: install Subversion for macOS.
Some tests need this and warn without and it's not installed by
default these days.
2023-08-10 16:27:52 +01:00
Mike McQuaid
71888db8ba
bottle: reproducibility fixes.
I noticed from
https://github.com/Homebrew/homebrew-core/actions/runs/5751070010 that
we're no longer creating reproducible bottles between macOS and Linux.

All macOS checksums have changed but Linux ones have not. The main
difference between the two platforms is the `gtar` version used so let's
always just use the formula on both platforms.

While we're here, clear up the ordering and comments a little on the
reproducible `tar` arguments so that it's easier to compare with the
reproducible builds archives documentation.
2023-08-04 10:02:44 +01:00
Mike McQuaid
80ab86ce2c
workflows/build-pkg: install gh.
Now that we're nuking and reinstalling Homebrew: need to install this
too.
2023-07-31 19:29:10 +01:00
Mike McQuaid
8819925af4
package/resources: improve text output.
- use the system font instead of Helvetica
- cleanup font definitions
- add extra newline to `CONCLUSION.rtf` to next steps not showing up
  without a click
- add actual hyperlinks to `CONCLUSION.rtf`

Fixes #15793
2023-07-31 14:56:40 +01:00
Mike McQuaid
2b0471c122
workflows/build-pkg: actually try to install package.
- This should help avoid this regressing
- Remove existing Homebrew installation(s)
- Install it twice to ensure that installing over the top of an existing
  installation works as expected
- Remove existing API cache to ensure we have the freshest files from
  the API in our package
2023-07-27 15:51:40 +01:00
Mike McQuaid
b00a95b678
pkg installer: install cached API data.
Continuing with the goals of making the installer:
- more useful
- entirely offline

Let's pre-download the API data from a `brew update` run and install it
into the logged-in user's home directory.

While we're here, in the `postinstall` script:
- use longer arguments for various commands
- fix an issue with symlinking on Intel if `/usr/local/bin` doesn't
  already exist
- unset `bash -x` and use `-v` on more commands instead
2023-07-26 15:32:14 +01:00
Mike McQuaid
c5afd5d056
macOS .pkg improvements
- don't include GitHub Actions credentials
- generate and include RTF version of Homebrew BSD license
- create nicer installer with `productbuild`
- customise welcome/conclusion messages
- add Homebrew logo as a background image
- remove unnecessary `preinstall` script
- cleanup `postinstall` script to pass `brew doctor`
- use `Distribution.xml` for a nicer installer
- require CLT or Xcode rather than using our hacks to try and install
  CLT during installation
2023-07-25 15:47:34 +01:00
TETRA2000
051d7ec4f7
Add package signing configuration for GitHub Actions
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2023-07-24 17:10:31 +01:00
Mike McQuaid
e1a7afb3cf
dev-cmd/generate-*-api: be a bit safer.
- also try generating formula API on macOS
- pull more logic out of `unless args.dry_run?` in case it fails
2023-07-18 12:57:09 +01:00
Mike McQuaid
5121567a9a
workflows: improve setup-homebrew and API usage.
- `HOMEBREW_NO_INSTALL_FROM_API` was passed in a few places
  unnecessarily
- https://github.com/Homebrew/actions/pull/393 will change the default
  behaviour of setup-homebrew so let's be explicit to speed things up
  and avoid changes when it's merged
2023-07-06 16:54:06 +01:00
BrewTestBot
72068b2a56
Update maintainers.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2023-06-17 00:05:52 +00:00
BrewTestBot
eb3f90ef01
triage-issues.yml: update to match main configuration 2023-06-13 10:05:35 +00:00
Razvan Azamfirei
520cfe5694
remove cask-drivers from tests 2023-06-08 08:26:03 -04:00
Bo Anderson
54bd9533ea
workflows/tests: update homebrew-cask 2023-06-05 20:51:39 +01:00
Ruoyu Zhong
4e11b62017
workflows/actionlint: run on actionlint config change 2023-06-03 18:14:25 +08:00
Ruoyu Zhong
b62740b102
actionlint.yaml: remove workaround for macos-13
This is no longer needed after Homebrew/homebrew-core#132722.

This reverts commit f729127fae6a12e173f55a59ef90a72c7cf18141.
2023-06-03 17:52:17 +08:00
Mike McQuaid
33a3f72fbc
Merge pull request #15492 from carlocab/no-run-attempt
github_runner_matrix: remove `GITHUB_RUN_ATTEMPT`
2023-05-29 16:22:21 +01:00
Carlo Cabrera
40166eb5e7
github_runner_matrix: remove GITHUB_RUN_ATTEMPT
This should no longer be needed after
Homebrew/ci-orchestrator@845d26ccc0.
2023-05-29 22:36:00 +08:00
BrewTestBot
782aa04e20
Update maintainers.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2023-05-29 13:32:19 +00:00
Carlo Cabrera
909b8d078e
dev-cmd/update-maintainers: write JSON of maintainers
This will be needed for Homebrew/homebrew-test-bot#933.
2023-05-29 21:30:47 +08:00
Markus Reiter
d55f1b85bf
Add --os and --arch flags to readall. 2023-05-20 20:11:31 +02:00
dependabot[bot]
e41a47e730
Bump codecov/codecov-action from 3.1.3 to 3.1.4
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](894ff025c7...eaaf4bedf3)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-16 18:56:46 +00:00
apainintheneck
152020038c workflows/tests: use dry run for generate-*-api 2023-05-15 18:32:11 -07:00
Mike McQuaid
cea0ec8b40
workflows/tests: test API generation.
This should avoid making changes here that break API generation.
2023-05-14 19:46:24 +01:00
Ruoyu Zhong
733eff2fa7
workflows/build-pkg: only run on Homebrew-owned repos
This prevents the workflow from being run in a fork.

Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
2023-05-10 12:59:33 +08:00
Bo Anderson
b5f4e8e790
workflows/tests: fix Codecov root dir 2023-04-27 14:59:18 +01:00
Ruoyu Zhong
f729127fae
actionlint.yaml: add workaround for macos-13 2023-04-25 17:55:22 +08:00
Ruoyu Zhong
381cbe5f74
workflows/vendor-gems: run on macos-13 2023-04-25 11:23:18 +08:00
Ruoyu Zhong
c4020d9b71
workflows/tests: run on macos-13 2023-04-25 11:23:01 +08:00
Ruoyu Zhong
3575ca9bbb
workflows/sorbet: run on macos-13 2023-04-25 11:22:35 +08:00