From a26c0bc6ccbc8c5b0fe096318f0bf2e197fe0e7c Mon Sep 17 00:00:00 2001 From: yuiseki Date: Sat, 10 Aug 2024 13:10:11 +0900 Subject: [PATCH] uses: actions/cache@v4 --- .github/workflows/ollama.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ollama.yml b/.github/workflows/ollama.yml index b7bb861..589b453 100644 --- a/.github/workflows/ollama.yml +++ b/.github/workflows/ollama.yml @@ -19,6 +19,12 @@ jobs: ollama serve & sleep 5 time curl -i http://localhost:11434 + - name: Cache Ollama models + id: cache-ollama-models + uses: actions/cache@v4 + with: + path: /usr/share/ollama/.ollama/models + key: ${{ runner.os }}-ollama-models - name: Pull gemma2:2b run: | ollama pull gemma2:2b