diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e4e2442..c40ab36 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -30,3 +30,33 @@ jobs: - name: Test run: go test -v -race ./... + + examples: + runs-on: ubuntu-latest + strategy: + matrix: + # We make use of the `slices` feature, only available in 1.21 and newer + go-version: [ '1.21', '1.22' ] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + + - name: Build minimal example + run: | + cd examples/minimal + go build -v ./... + + - name: Build RAG Wikipedia Ollama + run: | + cd examples/rag-wikipedia-ollama + go build -v ./... + + - name: Semantic search arXiv OpenAI + run: | + cd examples/semantic-search-arxiv-openai + go build -v ./...