From 655e00d6369bf61263a35d53a7f8ad67a891f265 Mon Sep 17 00:00:00 2001 From: Ran Magen Date: Mon, 31 Aug 2020 15:57:29 -0700 Subject: [PATCH] Install GNU tar as a workaround of the BSD tar being broken on Github macos machines. https://github.com/actions/cache/issues/403 --- .github/workflows/slow-test.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/slow-test.yml b/.github/workflows/slow-test.yml index ee8dbfb1e..164238132 100644 --- a/.github/workflows/slow-test.yml +++ b/.github/workflows/slow-test.yml @@ -41,10 +41,13 @@ jobs: override: true ### BUILD CACHE ### + # NB: We install gnu-tar because BSD tar is buggy on Github's macos machines. https://github.com/actions/cache/issues/403 + - name: Install GNU tar + if: matrix.build == 'macos' + run: | + brew install gnu-tar + echo "::add-path::/usr/local/opt/gnu-tar/libexec/gnubin" - name: Cache Cargo registry, target, index - # we skip caching on macos because of the flaky `thiserror_impl` problem. - # see https://github.com/apollographql/rust/issues/123 - if: matrix.build != 'macos' uses: actions/cache@v2 with: path: |