Skip to content

Commit

Permalink
ci: update setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyar committed Feb 14, 2021
1 parent 37c0dcf commit febc344
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/building.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,30 @@ jobs:
name: ${{ matrix.platform.name }}
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Cache Homebrew Bundler RubyGems
id: cache
uses: actions/cache@v1
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
restore-keys: ${{ runner.os }}-rubygems-

- name: Install Homebrew Bundler RubyGems
if: steps.cache.outputs.cache-hit != 'true'
run: brew install-bundler-gems

- name: Build bottles
run: |
brew test-bot --only-cleanup-before
brew test-bot --only-formulae --skip-recursive-dependents
brew test-bot --verbose --debug --only-cleanup-before
brew test-bot --verbose --debug --only-setup
brew test-bot --verbose --debug --only-formulae
- name: Upload bottles
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@main
with:
name: bottles
path: '*.bottle.*'
2 changes: 2 additions & 0 deletions .github/workflows/uploading.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
uses: Homebrew/actions/git-user-config@master
- name: Pull bottles
env:
HOMEBREW_GIT_NAME: BrewTestBot
HOMEBREW_GIT_EMAIL: 'homebrew-test-bot@lists.sfconservancy.org'
HOMEBREW_GITHUB_API_TOKEN: ${{secrets.HOMEBREW_GITHUB_API_TOKEN}}
PR: ${{github.event.pull_request.number}}
WORKFLOW: building.yml
Expand Down

0 comments on commit febc344

Please sign in to comment.