Skip to content

Commit

Permalink
Merge pull request #66 from philippgille/build-examples-in-ci
Browse files Browse the repository at this point in the history
Add building of examples to CI
  • Loading branch information
philippgille authored Apr 21, 2024
2 parents d56117d + c244463 commit 9c85711
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...

0 comments on commit 9c85711

Please sign in to comment.