diff --git a/.github/workflows/java-ci.yml b/.github/workflows/java-ci.yml index 0be2073..5c4be4b 100644 --- a/.github/workflows/java-ci.yml +++ b/.github/workflows/java-ci.yml @@ -54,6 +54,24 @@ jobs: name: JDK ${{ matrix.Java }} build steps: - uses: actions/checkout@v4.1.1 + - name: Install Ollama + run: | + curl -fsSL https://ollama.com/install.sh | sudo -E sh + - name: Start serving + run: | + # Run the background, there is no way to daemonise at the moment + ollama serve & + + # A short pause is required before the HTTP port is opened + sleep 5 + + # This endpoint blocks until ready + time curl -i http://localhost:11434 + + - name: Pull llama3 + run: | + ollama pull llama3 + - name: Set up Java uses: actions/setup-java@v4.2.1 with: