Skip to content

Commit

Permalink
CI: Fix/speed up macOS job
Browse files Browse the repository at this point in the history
Setting `HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` avoids triggering updates of other packages after crystal was installed. 

From the manual: 

> If set, do not check for broken linkage of dependents or outdated dependents after installing, upgrading or reinstalling formulae. This will result in fewer dependents (and their dependencies) being upgraded or reinstalled but may result in more breakage from running brew install formula or brew upgrade formula.

Seen at https://github.com/cloudamqp/lavinmq/actions/runs/7180316382/job/19552312371#step:2:81 "Upgrading 18 dependents of upgraded formulae"

Setting `HOMEBREW_NO_AUTO_UPDATE` to 1 makes no difference to having it set to 0, its applied whenever it is set, but 1 makes much more sense so you don't have to think about that. :)
  • Loading branch information
dentarg authored Dec 12, 2023
1 parent 07535ad commit 6739aa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ jobs:
- name: Install Crystal
run: brew install crystal
env:
HOMEBREW_NO_AUTO_UPDATE: 0
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1

- run: crystal --version

Expand Down

0 comments on commit 6739aa3

Please sign in to comment.