From c69f64fb4fbc0f792058606738a1d7859a280c5d Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Thu, 3 Dec 2020 16:40:37 +0100 Subject: [PATCH] Workaround for broken cache on OSX --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca5ce23787c..11e96b146a1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,13 +20,18 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Install GNU tar + if: runner.os == 'macOS' + run: | + brew install gnu-tar + echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH - uses: actions/cache@v2 with: path: | ~/.cargo/registry ~/.cargo/git target - key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-rust-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Check formatting run: cargo fmt --all -- --check - name: Build