Skip to content

Commit

Permalink
feat: cache in gh workflow to cache ollama
Browse files Browse the repository at this point in the history
  • Loading branch information
hungdtrn committed Feb 22, 2024
1 parent f5879a9 commit b2cb383
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/actions/setup-ai/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ runs:
id: cache-ollama
uses: actions/cache@v4
with:
path: ~/.local
path: ~/.ollama
key: ollama

- name: Install ollama
shell: bash
run: curl -fsSL https://ollama.com/install.sh | sh
run: curl -fsSL https://ollama.com/install.sh | sh &&

- name: Start ollama
if: steps.cache-ollama.outputs.cache-hit != 'true'
shell: bash
run: ollama pull tinydolphin

Expand Down

0 comments on commit b2cb383

Please sign in to comment.