Skip to content

Update CMakeLists.txt #74

Update CMakeLists.txt

Update CMakeLists.txt #74

Workflow file for this run

name: Testing
on:
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
services:
chroma-no-auth:
image: chromadb/chroma:0.5.15
ports:
- 8080:8000
chroma-with-auth:
image: chromadb/chroma:0.5.15
ports:
- 8081:8000
env:
CHROMA_SERVER_AUTHN_CREDENTIALS: authToken
CHROMA_SERVER_AUTHN_PROVIDER: chromadb.auth.token_authn.TokenAuthenticationServerProvider
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Initialize submodules
run: git submodule update --init --recursive
- name: Install GCC 13
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update
sudo apt-get install -y gcc-13 g++-13
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 60
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 60
gcc --version
g++ --version
- name: Install dependencies
run: sudo apt-get install -y cmake libssl-dev
- name: Configure CMake
run: cmake -S . -B build
- name: Build
run: cmake --build build
- name: Run tests
run: ctest --test-dir build -C Release --output-on-failure