Skip to content

Commit bc5bb50

Browse files
authored
ci: Pre-pull ollama model on runner before build
1 parent ee45cc9 commit bc5bb50

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/build-test.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,20 @@ jobs:
1414
- name: Check out repository code
1515
uses: actions/checkout@v4
1616

17-
- name: Install dependencies
17+
- name: Install build dependencies
1818
run: |
1919
sudo apt-get update
20-
sudo apt-get install -y debootstrap debian-archive-keyring plymouth
20+
sudo apt-get install -y debootstrap debian-archive-keyring plymouth curl
21+
22+
# --- NEW STEP: Install Ollama and Pull Model on Runner ---
23+
- name: Install Ollama and Pull Model
24+
run: |
25+
echo "Installing Ollama on runner..."
26+
curl -fsSL https://ollama.com/install.sh | sudo sh
27+
echo "Pulling base model on runner (this may take time)..."
28+
# Run pull as root so files go to /usr/share/ollama/.ollama
29+
sudo ollama pull llama3
30+
echo "Model pull complete on runner."
2131
2232
- name: Make scripts executable
2333
run: chmod +x *.sh
@@ -28,13 +38,14 @@ jobs:
2838
sudo ./02-configure-system.sh
2939
sudo ./03-install-desktop.sh
3040
sudo ./04-customize-desktop.sh
41+
# Script 05 now expects model files to exist on host
3142
sudo ./05-install-ai.sh
32-
sudo ./07-install-plymouth-theme.sh # Ajouté ici
33-
sudo ./06-final-cleanup.sh # Déplacé à la fin
43+
sudo ./07-install-plymouth-theme.sh
44+
sudo ./06-final-cleanup.sh
3445
env:
35-
CI: true
46+
CI: true # Keep for non-interactive password in script 02
3647

3748
- name: Verify build output
3849
run: |
39-
echo "Build finished! Listing contents of the chroot directory:"
50+
echo "Build finished. Listing contents of the chroot directory:"
4051
ls -lA chroot/

0 commit comments

Comments
 (0)