Skip to content

Commit a9942bd

Browse files
authored
Merge pull request #1558 from PyO3/davidhewitt-patch-1
ci: fix macOS cache (try 2)
2 parents bbc956b + 261ba69 commit a9942bd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
rust: [stable]
4848
python-version: [3.6, 3.7, 3.8, 3.9, 3.10-dev, pypy-3.6, pypy-3.7]
4949
platform: [
50-
{ os: "macOS-latest", python-architecture: "x64", rust-target: "x86_64-apple-darwin" },
50+
{ os: "macos-latest", python-architecture: "x64", rust-target: "x86_64-apple-darwin" },
5151
{ os: "ubuntu-latest", python-architecture: "x64", rust-target: "x86_64-unknown-linux-gnu" },
5252
{ os: "windows-latest", python-architecture: "x64", rust-target: "x86_64-pc-windows-msvc" },
5353
{ os: "windows-latest", python-architecture: "x86", rust-target: "i686-pc-windows-msvc" },
@@ -69,10 +69,10 @@ jobs:
6969
steps:
7070
- uses: actions/checkout@v2
7171

72-
# macOS: install gnu-tar because BSD tar is buggy for github actions
72+
# macos: install gnu-tar because BSD tar is buggy for github actions
7373
# https://github.com/actions/cache/issues/403
74-
- name: Install GNU tar (Macos)
75-
if: matrix.os == 'macOS-latest'
74+
- name: Install GNU tar (macOS only)
75+
if: matrix.platform.os == 'macos-latest'
7676
run: |
7777
brew install gnu-tar
7878
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
@@ -83,7 +83,7 @@ jobs:
8383
~/.cargo/registry
8484
~/.cargo/git
8585
target
86-
key: ${{ matrix.python-version }}-${{ matrix.platform.python-architecture }}-${{ matrix.platform.os }}-${{ matrix.msrv }}-cargo-${{ hashFiles('**/Cargo.toml') }}
86+
key: cargo-${{ matrix.python-version }}-${{ matrix.platform.python-architecture }}-${{ matrix.platform.os }}-${{ matrix.msrv }}-${{ hashFiles('**/Cargo.toml') }}
8787

8888
- name: Set up Python ${{ matrix.python-version }}
8989
uses: actions/setup-python@v2

0 commit comments

Comments
 (0)