Skip to content

Commit

Permalink
workflows/dispatch-build-bottle: move setup-homebrew step to beginning
Browse files Browse the repository at this point in the history
This applies necessary fixes for the subsequent steps to run without
root permissions.
  • Loading branch information
ZhongRuoyu committed Sep 11, 2024
1 parent 860c823 commit bd32356
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/dispatch-build-bottle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,17 @@ jobs:
runs-on: ubuntu-22.04
container:
image: ghcr.io/homebrew/ubuntu22.04:master
options: --user=root
outputs:
runners: ${{steps.runner-matrix.outputs.result}}
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
core: true
cask: false
test-bot: false

- name: Prepare runner matrix
id: runner-matrix
uses: actions/github-script@v7
Expand Down Expand Up @@ -82,14 +89,6 @@ jobs:
return {runner: s, cleanup: true};
});
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
core: true
cask: false
test-bot: false

- name: Check for existing bottle
shell: brew ruby {0}
env:
Expand Down

0 comments on commit bd32356

Please sign in to comment.