Fix build fix (#693)

Fix the conditional that gates installing GNU Tar. This should finally
fix the build errors we've been seeing.
This commit is contained in:
Casey Rodarmor 2020-10-04 13:23:27 -07:00 committed by GitHub
parent 935f1130ac
commit 2909614f68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ env:
# Increment to invalidate github actions caches if they become corrupt. # Increment to invalidate github actions caches if they become corrupt.
# Errors of the form "can't find crate for `snafu_derive` which `snafu` depends on" # Errors of the form "can't find crate for `snafu_derive` which `snafu` depends on"
# can usually be fixed by incrementing this value. # can usually be fixed by incrementing this value.
CACHE_KEY_PREFIX: 3 CACHE_KEY_PREFIX: 4
jobs: jobs:
all: all:
@ -45,7 +45,7 @@ jobs:
# An issue with BSD Tar causes sporadic failures on macOS. # An issue with BSD Tar causes sporadic failures on macOS.
# c.f https://github.com/actions/cache/issues/403 # c.f https://github.com/actions/cache/issues/403
- name: Install GNU Tar - name: Install GNU Tar
if: matrix.build == 'macos' if: matrix.os == 'macos-latest'
run: | run: |
brew install gnu-tar brew install gnu-tar
echo "::add-path::/usr/local/opt/gnu-tar/libexec/gnubin" echo "::add-path::/usr/local/opt/gnu-tar/libexec/gnubin"