Skip to content

Commit

Permalink
try to fix cache
Browse files Browse the repository at this point in the history
  • Loading branch information
yuiseki committed Aug 10, 2024
1 parent 903e1db commit f160442
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ollama.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install Ollama
run: |
curl -fsSL https://ollama.com/install.sh | sudo -E sh
- name: Make ollama models directory
run: |
sudo mkdir -p ~/.ollama/models
mkdir -p ~/.ollama/models
- name: Cache Ollama models
id: cache-ollama-models
uses: actions/cache@v4
with:
path: ~/.ollama/models
key: ${{ runner.os }}-ollama-models
- name: Install Ollama
env:
OLLAMA_MODELS: ~/.ollama/models
run: |
curl -fsSL https://ollama.com/install.sh | sudo -E sh
sudo systemctl stop ollama.service
- name: Change permissions
run: |
sudo chown -R ollama:ollama ~/.ollama
Expand Down

0 comments on commit f160442

Please sign in to comment.