Skip to content

Commit

Permalink
Merge pull request #1555 from davidhewitt/macos-cache
Browse files Browse the repository at this point in the history
ci: fix macOS cache
  • Loading branch information
davidhewitt authored Apr 11, 2021
2 parents f4456ae + 2c23da7 commit bbc956b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,15 @@ jobs:
steps:
- uses: actions/checkout@v2

# macOS: install gnu-tar because BSD tar is buggy for github actions
# https://github.com/actions/cache/issues/403
- name: Install GNU tar (Macos)
if: matrix.os == 'macOS-latest'
run: |
brew install gnu-tar
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
- uses: actions/cache@v2
# macOS seems to have a problem when the proc_macro_hack crates are cached.
# We can cache macOS in CI once we drop support for Rust older than 1.45
if: matrix.platform.os != 'macOS-latest'
with:
path: |
~/.cargo/registry
Expand Down

0 comments on commit bbc956b

Please sign in to comment.