From 786d2db42110a9672878819e89940aae4792e5c8 Mon Sep 17 00:00:00 2001 From: Kosei Kitahara Date: Mon, 4 Nov 2019 19:30:15 +0900 Subject: [PATCH] Support macOS --- examples.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/examples.md b/examples.md index a449622..d3aec48 100644 --- a/examples.md +++ b/examples.md @@ -125,9 +125,18 @@ uses: actions/cache@preview ```yaml - uses: actions/cache@preview + if: startsWith(runner.os, 'Linux') with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} restore-keys: | ${{ runner.os }}-pip- + +- uses: actions/cache@preview + if: startsWith(runner.os, 'macOS') + with: + path: ~/Library/Caches/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- ```