From 261ba692a4e84859b58eb18bf5de93d2c4df9ae0 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Sun, 11 Apr 2021 23:10:23 +0100 Subject: [PATCH] ci: fix macOS cache (try 2) --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e35fabc..82c7eb77 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,7 @@ jobs: rust: [stable] python-version: [3.6, 3.7, 3.8, 3.9, 3.10-dev, pypy-3.6, pypy-3.7] platform: [ - { os: "macOS-latest", python-architecture: "x64", rust-target: "x86_64-apple-darwin" }, + { os: "macos-latest", python-architecture: "x64", rust-target: "x86_64-apple-darwin" }, { os: "ubuntu-latest", python-architecture: "x64", rust-target: "x86_64-unknown-linux-gnu" }, { os: "windows-latest", python-architecture: "x64", rust-target: "x86_64-pc-windows-msvc" }, { os: "windows-latest", python-architecture: "x86", rust-target: "i686-pc-windows-msvc" }, @@ -69,10 +69,10 @@ jobs: steps: - uses: actions/checkout@v2 - # macOS: install gnu-tar because BSD tar is buggy for github actions + # 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' + - name: Install GNU tar (macOS only) + if: matrix.platform.os == 'macos-latest' run: | brew install gnu-tar echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH @@ -83,7 +83,7 @@ jobs: ~/.cargo/registry ~/.cargo/git target - key: ${{ matrix.python-version }}-${{ matrix.platform.python-architecture }}-${{ matrix.platform.os }}-${{ matrix.msrv }}-cargo-${{ hashFiles('**/Cargo.toml') }} + key: cargo-${{ matrix.python-version }}-${{ matrix.platform.python-architecture }}-${{ matrix.platform.os }}-${{ matrix.msrv }}-${{ hashFiles('**/Cargo.toml') }} - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2