Skip to content

Commit

Permalink
ci: force openssl@3 formula reinstall
Browse files Browse the repository at this point in the history
Static libs are missing for OpenSSL@3 in current GitHub Actions macOS-14 runner
image is broken until it pulls in Homebrew/homebrew-core#169721

Removed "install from API" config too, since auto upgrades are disabled anyway.
  • Loading branch information
maxfierke committed Apr 28, 2024
1 parent 42d2b50 commit 7c48a3f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Homebrew to install from API
run: echo HOMEBREW_NO_INSTALL_FROM_API= >> "$GITHUB_ENV"

# TODO: Remove openssl@3 reinstall cmd after 20240422.3 is no longer the latest
# macos-14-arm64 image
- name: Install crystal and tool dependencies
run: brew install crystal meson openssl@3
run: |
brew install crystal meson openssl@3
brew update && brew reinstall openssl@3
- name: Install dependencies
run: shards install
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# TODO: Remove openssl@3 reinstall cmd after 20240422.3 is no longer the latest
# macos-14-arm64 image
- name: Install crystal and tool dependencies
run: brew install crystal meson openssl@3
run: |
brew install crystal meson openssl@3
brew update && brew reinstall openssl@3
- name: Install dependencies
run: shards install
Expand All @@ -34,9 +38,6 @@ jobs:

# Based on https://raw.githubusercontent.com/MikeMcQuaid/strap/master/.github/workflows/tests.yml

- name: Set up Homebrew to install from API
run: echo HOMEBREW_NO_INSTALL_FROM_API= >> "$GITHUB_ENV"

- name: Run brew bot's cleanup
run: brew test-bot --only-cleanup-before

Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Homebrew to install from API
run: echo HOMEBREW_NO_INSTALL_FROM_API= >> "$GITHUB_ENV"

# TODO: Remove openssl@3 reinstall cmd after 20240422.3 is no longer the latest
# macos-14-arm64 image
- name: Install crystal and tool dependencies
run: brew install crystal meson openssl@3
run: |
brew install crystal meson openssl@3
brew update && brew reinstall openssl@3
- name: Install dependencies
run: shards install
Expand Down Expand Up @@ -133,11 +134,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Homebrew to install from API
run: echo HOMEBREW_NO_INSTALL_FROM_API= >> "$GITHUB_ENV"

# TODO: Remove openssl@3 reinstall cmd after 20240422.3 is no longer the latest
# macos-14-arm64 image
- name: Install crystal and tool dependencies
run: brew install crystal meson openssl@3
run: |
brew install crystal meson openssl@3
brew update && brew reinstall openssl@3
- name: Install dependencies
run: shards install
Expand Down

0 comments on commit 7c48a3f

Please sign in to comment.