First commit #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
paths: | |
- .github/workflows/step.yml | |
jobs: | |
ubuntu: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, ubuntu-20.04] | |
steps: | |
- name: Install pgvector | |
run: | | |
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y | |
sudo apt-get install postgresql-14-pgvector | |
- run: sudo systemctl start postgresql | |
- run: sudo -u postgres psql -c 'CREATE EXTENSION vector' | |
mac: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-13, macos-12, macos-11] | |
steps: | |
- name: Install pgvector | |
run: brew install pgvector | |
- run: brew services run postgresql@14 && sleep 1 | |
- run: psql -d postgres -c 'CREATE EXTENSION vector' |