Skip to content

Commit

Permalink
chore(ci): fix brew install on macOS runner
Browse files Browse the repository at this point in the history
  • Loading branch information
hongyuanjia committed Mar 21, 2024
1 parent 4b79aac commit 1edf371
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ jobs:
- name: Install mdbtools
id: install-mdbtools-brew
if: ${{ matrix.config.os == 'macos-latest' }}
run: brew install mdbtools
run:
# Unlink and re-link to prevent errors when GitHub mac runner images
# https://github.com/actions/setup-python/issues/577
brew list -1 | grep python | while read formula; do brew unlink $formula; brew link --overwrite $formula; done
brew update
brew install mdbtools

- name: Install mdbtools
id: install-mdbtools-apt
Expand Down

0 comments on commit 1edf371

Please sign in to comment.