Skip to content

Commit

Permalink
ci: Update homebrew cask new dir (#536)
Browse files Browse the repository at this point in the history
Issue #, if available:
Homebrew cask now partion its formulas by sub-folder, e.g., finch is
uder ./Cask/f/finch.rb instead of ./Cask/finch.rb
This is a regression from homebrew cask which breaks our homebrew
release automation.

*Description of changes:*
This pr updated the path in all places to unblock 0.8.0 release.

*Testing done:*
Will exercise the updated action after the PR checked in


- [X] I've reviewed the guidance in CONTRIBUTING.md


#### License Acceptance

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.

Signed-off-by: Kevin Li <[email protected]>
  • Loading branch information
KevinLiAWS authored Aug 16, 2023
1 parent ae6bb7d commit bbdd782
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release-homebrew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
sudo pkill '^socket_vmnet'
fi
cd $(brew --repo homebrew/cask)
brew uninstall --cask ./Casks/finch.rb || true
brew uninstall --cask ./Casks/f/finch.rb || true
shell: zsh {0}
- name: Set up Homebrew
id: set-up-homebrew
Expand All @@ -93,7 +93,7 @@ jobs:
run: |
export HOMEBREW_NO_INSTALL_FROM_API=1
cd $(brew --repo homebrew/cask)
brew install --cask ./Casks/finch.rb
brew install --cask ./Casks/f/finch.rb
shell: zsh {0}
- name: Install Rosetta 2
run: echo "A" | softwareupdate --install-rosetta || true
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
# Need to reinstall because there were errors on arm64 11.7 and arm64 12.6 hosts after running multiple instances tests,
# that caused the VM initialization failure in the e2e test.
# Example workflow run https://github.com/runfinch/finch/actions/runs/4367457552/jobs/7638794529
brew reinstall --cask ./Casks/finch.rb
brew reinstall --cask ./Casks/f/finch.rb
shell: zsh {0}
- name: Run e2e tests
uses: nick-fields/retry@v2
Expand All @@ -153,7 +153,7 @@ jobs:
if: ${{ always() }}
run: |
cd $(brew --repo homebrew/cask)
brew uninstall --zap --cask ./Casks/finch.rb
brew uninstall --zap --cask ./Casks/f/finch.rb
if [ -d "/Applications/Finch" ]; then
echo ERROR: Finch is not uninstalled
exit 1
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
sudo pkill '^socket_vmnet'
fi
cd $(brew --repo homebrew/cask)
brew uninstall --cask ./Casks/finch.rb || true
brew uninstall --cask ./Casks/f/finch.rb || true
shell: zsh {0}
- name: Set up Homebrew
id: set-up-homebrew
Expand All @@ -214,7 +214,7 @@ jobs:
run: |
export HOMEBREW_NO_INSTALL_FROM_API=1
cd $(brew --repo homebrew/cask)
brew install --cask ./Casks/finch.rb
brew install --cask ./Casks/f/finch.rb
shell: zsh {0}
- name: Install Rosetta 2
run: echo "A" | softwareupdate --install-rosetta || true
Expand Down Expand Up @@ -259,7 +259,7 @@ jobs:
sudo rm -rf ./_output
export HOMEBREW_NO_INSTALL_FROM_API=1
cd $(brew --repo homebrew/cask)
brew reinstall --cask ./Casks/finch.rb
brew reinstall --cask ./Casks/f/finch.rb
shell: zsh {0}
- name: Run e2e tests
uses: nick-fields/retry@v2
Expand All @@ -271,7 +271,7 @@ jobs:
if: ${{ always() }}
run: |
cd $(brew --repo homebrew/cask)
brew uninstall --zap --cask ./Casks/finch.rb
brew uninstall --zap --cask ./Casks/f/finch.rb
if [ -d "/Applications/Finch" ]; then
echo ERROR: Finch is not uninstalled
exit 1
Expand Down

0 comments on commit bbdd782

Please sign in to comment.